From 259ecb29d4935c112f9be761473c376b230347ae Mon Sep 17 00:00:00 2001 From: JamesLim-sy Date: Mon, 24 May 2021 14:07:05 +0000 Subject: [PATCH] delete print codes --- paddle/fluid/operators/controlflow/compare_op.cu | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/paddle/fluid/operators/controlflow/compare_op.cu b/paddle/fluid/operators/controlflow/compare_op.cu index f371907166e9f..a204d720917b5 100644 --- a/paddle/fluid/operators/controlflow/compare_op.cu +++ b/paddle/fluid/operators/controlflow/compare_op.cu @@ -60,14 +60,13 @@ template class CompareOpCudaKernel : public framework::OpKernel { public: - using InT = typename Functor::ELEMENT_TYPE; - using OutT = bool; + public: + using T = typename Functor::ELEMENT_TYPE; void Compute(const framework::ExecutionContext& ctx) const override { - auto* x = ctx.Input("X"); - auto* y = ctx.Input("Y"); - auto* z = ctx.Output("Out"); - z->mutable_data(ctx.GetPlace()); - + auto* x = ctx.Input("X"); + auto* y = ctx.Input("Y"); + auto* z = ctx.Output("Out"); + z->mutable_data(ctx.GetPlace()); int axis = ctx.Attr("axis"); axis = axis == -1 ? std::abs(x->dims().size() - y->dims().size()) : axis; auto functor = Functor(); @@ -77,7 +76,7 @@ class CompareOpCudaKernel const auto& cuda_ctx = ctx.template device_context(); - LaunchElementwiseCudaKernel( + LaunchElementwiseCudaKernel( cuda_ctx, ins, &outs, axis, functor); } };