From: Андрей Шедько/AI Tools Lab /SRR/Engineer/삼성전자 Date: Tue, 22 Jan 2019 07:55:11 +0000 (+0300) Subject: [nnc] Fix arm-cpu build (#2905) X-Git-Tag: nncc_backup~935 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e05daac0a48a31c72d834649ba9f2ccdeecc061;p=platform%2Fcore%2Fml%2Fnnfw.git [nnc] Fix arm-cpu build (#2905) Fix arm-cpu build by removing activations left out under #ifdef Signed-off-by: Andrei Shedko --- diff --git a/contrib/nnc/passes/soft_backend/code_snippets/cpp_depthwise_conv.def b/contrib/nnc/passes/soft_backend/code_snippets/cpp_depthwise_conv.def index 83239ff..e48fd1f 100644 --- a/contrib/nnc/passes/soft_backend/code_snippets/cpp_depthwise_conv.def +++ b/contrib/nnc/passes/soft_backend/code_snippets/cpp_depthwise_conv.def @@ -1006,11 +1006,6 @@ inline void DepthwiseConv( acc[k] = vld1q_f32(acc_buffer + i + 4 * k); } for (int k = 0; k < 4; k++) { - acc[k] = vmaxq_f32( - vdupq_n_f32(output_activation_min), - vminq_f32(vdupq_n_f32(output_activation_max), acc[k])); - } - for (int k = 0; k < 4; k++) { vst1q_f32(output_ptr + 4 * k, acc[k]); } output_ptr += 16; @@ -1019,9 +1014,6 @@ inline void DepthwiseConv( for (; i <= num_output_values - 4; i += 4) { float32x4_t acc = vld1q_f32(acc_buffer + i); - acc = vmaxq_f32(vdupq_n_f32(output_activation_min), - vminq_f32(vdupq_n_f32(output_activation_max), acc)); - vst1q_f32(output_ptr, acc); output_ptr += 4; }