提交 5b3d1cbe 编写于 作者: H hjchen2

Fix softmax bug

上级 5df51432
...@@ -128,7 +128,7 @@ void SoftmaxFuntor<CPU, float>::operator()(const framework::Tensor *X, ...@@ -128,7 +128,7 @@ void SoftmaxFuntor<CPU, float>::operator()(const framework::Tensor *X,
x0 = vmulq_f32(x0, __inv_sum); x0 = vmulq_f32(x0, __inv_sum);
x1 = vmulq_f32(x1, __inv_sum); x1 = vmulq_f32(x1, __inv_sum);
vst1q_f32(output, x0); vst1q_f32(output, x0);
vst1q_f32(output + 4, x0); vst1q_f32(output + 4, x1);
} }
#endif #endif
for (int i = 0; i < remain; ++i) { for (int i = 0; i < remain; ++i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册