Skip to content

Commit 25d76bc

Browse files
author
wanghaox
committed
modify for add a space in maxout op
1 parent 4c113cc commit 25d76bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paddle/operators/math/maxouting.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MaxOutFunctor<platform::CPUPlace, T> {
4747
// T ele = maxout_process.initial();
4848
T ele = static_cast<T>(-FLT_MAX);
4949
for (int ph = 0; ph < groups; ++ph) {
50-
T x=input_data[(new_bindex+new_cindex) * groups+ph*fea_size+f];
50+
T x = input_data[(new_bindex+new_cindex) * groups+ph*fea_size+f];
5151
ele = ele > x ? ele : x;
5252
}
5353
output_data[(new_bindex+new_cindex+f)] = ele;

paddle/operators/math/maxouting.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MaxOutFunctor {
3030
public:
3131
void operator()(const platform::DeviceContext& context,
3232
const framework::Tensor& input, framework::Tensor * output,
33-
int groups );
33+
int groups);
3434
};
3535

3636
template <typename Place, class T>

0 commit comments

Comments
 (0)