Skip to content

Commit 762160b

Browse files
committed
fix concat grad kernel
1 parent 2074d36 commit 762160b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/math/concat.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class ConcatGradFunctor<platform::CUDADeviceContext, T> {
209209

210210
outputs_cols[0] = 0;
211211
for (int i = 0; i < o_num; ++i) {
212-
int t_col = outputs->at(i)->numel() / out_row;
212+
int t_col = ref_inputs.at(i)->numel() / out_row;
213213
if (sameShape) {
214214
if (t_col != out0_col) sameShape = false;
215215
}

0 commit comments

Comments
 (0)