From 6e05daac0a48a31c72d834649ba9f2ccdeecc061 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=A8=D0=B5=D0=B4?= =?utf8?q?=D1=8C=D0=BA=D0=BE/AI=20Tools=20Lab=20/SRR/Engineer/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 22 Jan 2019 10:55:11 +0300 Subject: [PATCH] [nnc] Fix arm-cpu build (#2905) Fix arm-cpu build by removing activations left out under #ifdef Signed-off-by: Andrei Shedko --- .../nnc/passes/soft_backend/code_snippets/cpp_depthwise_conv.def | 8 -------- 1 file changed, 8 deletions(-) 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; } -- 2.7.4