Skip to content

Commit

Permalink
Merge pull request #11579 from jacquesqiao/fix-concat-grad-kernel
Browse files Browse the repository at this point in the history
fix concat grad kernel
  • Loading branch information
jacquesqiao authored Jun 20, 2018
2 parents d020d7f + 762160b commit 4116b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/math/concat.cu
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class ConcatGradFunctor<platform::CUDADeviceContext, T> {

outputs_cols[0] = 0;
for (int i = 0; i < o_num; ++i) {
int t_col = outputs->at(i)->numel() / out_row;
int t_col = ref_inputs.at(i)->numel() / out_row;
if (sameShape) {
if (t_col != out0_col) sameShape = false;
}
Expand Down

0 comments on commit 4116b55

Please sign in to comment.