History

dnn_backend_native_layer_conv2d.c: fix bug of loop boundary in single thread mode.

Before patch, fate test for dnn may fail in some Windows environment while succeed in my Linux. The bug was caused by a wrong loop boundary. After patch, fate test succeed in my windows mingw 64-bit.

Xu Jun committed 6 years ago

Commit a39fcbd1 parent 5aafdb41 file · +1 −1Browse files

Unified · Split

libavfilter/dnn/dnn_backend_native_layer_conv2d.c+1−1
@@ -245,7 +245,7 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_ · 244 unmodified lines
245245 #else
246246 thread_param[0] = av_malloc(sizeof(**thread_param));
247247 thread_param[0]->thread_common_param = &thread_common_param;
248− thread_param[0]->thread_start = 0;
248+ thread_param[0]->thread_start = pad_size;
249249 thread_param[0]->thread_end = height - pad_size;
250250 dnn_execute_layer_conv2d_thread((void *)thread_param[0]);
251251 av_free(thread_param[0]);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t