提交 cc0d66e3 编写于 作者: 刘托

Merge branch 'reduction' into 'master'

Fix openmp bug:

See merge request !811
...@@ -110,7 +110,6 @@ struct ReduceMeanFunctor : ReduceFunctorBase { ...@@ -110,7 +110,6 @@ struct ReduceMeanFunctor : ReduceFunctorBase {
case 1: case 1:
if (reduce_first_axis_) { if (reduce_first_axis_) {
T sum = 0; T sum = 0;
#pragma omp parallel for reduction(+:sum)
for (int i = 0; i < data_reshape_[0]; ++i) { for (int i = 0; i < data_reshape_[0]; ++i) {
sum = sum + input_ptr[i]; sum = sum + input_ptr[i];
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册