We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13d39ea commit c645d06Copy full SHA for c645d06
paddle/operators/math/maxouting.cc
@@ -47,7 +47,8 @@ class MaxOutFunctor<platform::CPUPlace, T> {
47
// T ele = maxout_process.initial();
48
T ele = static_cast<T>(-FLT_MAX);
49
for (int ph = 0; ph < groups; ++ph) {
50
- T x = input_data[(new_bindex+new_cindex) * groups+ph*fea_size+f];
+ T x = input_data[(new_bindex + new_cindex) * groups
51
+ + ph * fea_size + f];
52
ele = ele > x ? ele : x;
53
}
54
output_data[(new_bindex+new_cindex+f)] = ele;
0 commit comments