Skip to content

Commit 4116b55

Browse files
authored
Merge pull request #11579 from jacquesqiao/fix-concat-grad-kernel
fix concat grad kernel
2 parents d020d7f + 762160b commit 4116b55

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)