Merge pull request #11579 from jacquesqiao/fix-concat-grad-kernel

fix concat grad kernel
revert-11610-move_hooks
Qiao Longfei 7 years ago committed by GitHub
commit 4116b55163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

Loading…
Cancel
Save