Browse Source

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.

Signed-off-by: Xu Jun <xujunzz@sjtu.edu.cn>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
tags/n4.4
Xu Jun Guo, Yejun 5 years ago
parent
commit
a39fcbdffb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/dnn/dnn_backend_native_layer_conv2d.c

+ 1
- 1
libavfilter/dnn/dnn_backend_native_layer_conv2d.c View File

@@ -245,7 +245,7 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_
#else
thread_param[0] = av_malloc(sizeof(**thread_param));
thread_param[0]->thread_common_param = &thread_common_param;
thread_param[0]->thread_start = 0;
thread_param[0]->thread_start = pad_size;
thread_param[0]->thread_end = height - pad_size;
dnn_execute_layer_conv2d_thread((void *)thread_param[0]);
av_free(thread_param[0]);


Loading…
Cancel
Save