Skip to content

Commit bfe5dc6

Browse files
authored
Merge pull request #11607 from chengduoZH/fix_concat_warning
Fix concat compile warning
2 parents 6e1c48d + 804c767 commit bfe5dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/fluid/operators/math/concat.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ class ConcatGradFunctor<platform::CPUDeviceContext, T> {
9393
auto cpu_place = boost::get<platform::CPUPlace>(context.GetPlace());
9494

9595
// computation
96-
for (size_t k = 0; k < input_rows; ++k) {
96+
for (int k = 0; k < input_rows; ++k) {
9797
const T* src_ptr = input.data<T>() + k * input_cols;
9898
int col_idx = 0;
99-
for (int j = 0; j < num; ++j) {
99+
for (size_t j = 0; j < num; ++j) {
100100
int col_len = output_cols[j];
101101
auto* out_tensor = outputs->at(j);
102102
if (out_tensor != nullptr) {

0 commit comments

Comments
 (0)