diff --git a/paddle/operators/deconv2d_op.cu b/paddle/operators/deconv2d_op.cu index 08651fc1b7b8e1f373e05f483dcddfab958d15d1..b117e7eeef89263bef8baf9272cf085447cf97f1 100644 --- a/paddle/operators/deconv2d_op.cu +++ b/paddle/operators/deconv2d_op.cu @@ -12,7 +12,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -#include "paddle/operators/conv2d_op.h" #include "paddle/operators/deconv2d_op.h" namespace ops = paddle::operators; diff --git a/paddle/operators/deconv2d_op.h b/paddle/operators/deconv2d_op.h index 388b8fee76c0c98400dd22bb98a22def1d5208f4..0c6b6cc09463667fc00fa9b144668551099d0309 100644 --- a/paddle/operators/deconv2d_op.h +++ b/paddle/operators/deconv2d_op.h @@ -158,9 +158,6 @@ class GemmDeconvGrad2DKernel : public framework::OpKernel { int O_W = output_grad->dims()[3]; // Two functors required to get to the right shape - paddle::operators::math::Col2ImFunctor< - paddle::operators::math::ColFormat::kCFO, Place, T> - col2im; paddle::operators::math::Im2ColFunctor< paddle::operators::math::ColFormat::kCFO, Place, T> im2col; @@ -231,7 +228,7 @@ class GemmDeconvGrad2DKernel : public framework::OpKernel { strides[0], strides[1], paddings[0], paddings[1]); // gemm: d_filter = x * y_grad^T math::matmul(context.device_context(), in_batch, false, - col_matrix, true, T(1.0), &filter_grad, T(1.0)); + col_matrix, true, T(1.0), &filter_grad_, T(1.0)); } } }