From 25d76bc7e147d7cef53a1704c81de4b7d07d0f5f Mon Sep 17 00:00:00 2001 From: wanghaox Date: Mon, 20 Nov 2017 10:18:09 +0800 Subject: [PATCH] modify for add a space in maxout op --- paddle/operators/math/maxouting.cc | 2 +- paddle/operators/math/maxouting.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/operators/math/maxouting.cc b/paddle/operators/math/maxouting.cc index baaa86ffc..aa8d44d2f 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 72f40d96f..76a256add 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 -- GitLab