File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
paddle/fluid/operators/math Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class ConcatFunctor<platform::CPUDeviceContext, T> {
44
44
out_cols += t_cols;
45
45
input_cols[i] = t_cols;
46
46
}
47
- auto & cpu_place = boost::get<platform::CPUPlace>(context.GetPlace ());
47
+ auto cpu_place = boost::get<platform::CPUPlace>(context.GetPlace ());
48
48
49
49
// computation
50
50
for (int k = 0 ; k < out_rows; ++k) {
@@ -87,7 +87,7 @@ class ConcatGradFunctor<platform::CPUDeviceContext, T> {
87
87
input_cols += t_cols;
88
88
output_cols[i] = t_cols;
89
89
}
90
- auto & cpu_place = boost::get<platform::CPUPlace>(context.GetPlace ());
90
+ auto cpu_place = boost::get<platform::CPUPlace>(context.GetPlace ());
91
91
92
92
// computation
93
93
for (int k = 0 ; k < input_rows; ++k) {
You can’t perform that action at this time.
0 commit comments