fix bug of DepthwiseConvTransposeGradKernel (#31762)

2.0.1-rocm-post
Ouyang Chao 5 years ago committed by GitHub
parent 25fc2a1fdb
commit a45c8ca69d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -682,9 +682,9 @@ class DepthwiseConvTransposeGradKernel : public framework::OpKernel<T> {
if (input_grad) {
math::DepthwiseConvFunctor<DeviceContext, T> depthwiseConv;
depthwiseConv(
dev_ctx, *output_grad, filter, strides, paddings,
dev_ctx, *output_grad, filter, strides,
std::vector<int>{paddings[0], paddings[2], paddings[1], paddings[3]},
input_grad, data_layout);
dilations, input_grad, data_layout);
}
if (filter_grad) {

Loading…
Cancel
Save