diff --git a/paddle/operators/math/maxouting.cc b/paddle/operators/math/maxouting.cc index baaa86ffced70743445f939a1d6a68d947dcd334..aa8d44d2ff7d3b07c4476d124215f72ba371b3fd 100644 --- a/paddle/operators/math/maxouting.cc +++ b/paddle/operators/math/maxouting.cc @@ -47,7 +47,7 @@ class MaxOutFunctor { // T ele = maxout_process.initial(); T ele = static_cast(-FLT_MAX); for (int ph = 0; ph < groups; ++ph) { - T x=input_data[(new_bindex+new_cindex) * groups+ph*fea_size+f]; + T x = input_data[(new_bindex+new_cindex) * groups+ph*fea_size+f]; ele = ele > x ? ele : x; } output_data[(new_bindex+new_cindex+f)] = ele; diff --git a/paddle/operators/math/maxouting.h b/paddle/operators/math/maxouting.h index 72f40d96f79849d9592103556529b8935ad0d72d..76a256add9ad89744c8d5c3cf8e6f264c5bb87d5 100644 --- a/paddle/operators/math/maxouting.h +++ b/paddle/operators/math/maxouting.h @@ -30,7 +30,7 @@ class MaxOutFunctor { public: void operator()(const platform::DeviceContext& context, const framework::Tensor& input, framework::Tensor * output, - int groups ); + int groups); }; template