未验证 提交 b6ce4f8b 编写于 作者: L Lv Mengsi 提交者: GitHub

Fix mistake of batch norm op (#21237)

* fix_bn

* revert unittest,test=develop
上级 41d13209
......@@ -418,7 +418,7 @@ class BatchNormGradKernel<platform::CUDADeviceContext, T>
}
} else {
if (d_x) {
BNBackwardData<T, block, framework::DataLayout::kNCHW><<<
BNBackwardData<T, block, framework::DataLayout::kNHWC><<<
grid2, block, 0, dev_ctx.stream()>>>(
d_y->data<T>(), scale->data<BatchNormParamType<T>>(),
saved_mean_data, x->data<T>(), saved_var_data, C, N, H * W * D,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册