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.
2 parents 6e1c48d + 804c767 commit bfe5dc6Copy full SHA for bfe5dc6
paddle/fluid/operators/math/concat.cc
@@ -93,10 +93,10 @@ class ConcatGradFunctor<platform::CPUDeviceContext, T> {
93
auto cpu_place = boost::get<platform::CPUPlace>(context.GetPlace());
94
95
// computation
96
- for (size_t k = 0; k < input_rows; ++k) {
+ for (int k = 0; k < input_rows; ++k) {
97
const T* src_ptr = input.data<T>() + k * input_cols;
98
int col_idx = 0;
99
- for (int j = 0; j < num; ++j) {
+ for (size_t j = 0; j < num; ++j) {
100
int col_len = output_cols[j];
101
auto* out_tensor = outputs->at(j);
102
if (out_tensor != nullptr) {
0 commit comments