diff --git a/paddle/operators/compare_op.h b/paddle/operators/compare_op.h index 15e9cfcaabbf8d246264b5103624478ebcbdf0af..9c655d6c0d8e5fe04ee6d85f7e9d9da68105230c 100644 --- a/paddle/operators/compare_op.h +++ b/paddle/operators/compare_op.h @@ -54,7 +54,7 @@ class CompareOpKernel public: void Compute(const framework::ExecutionContext& context) const override { using T = typename Functor::ELEM_TYPE; - ElementwiseComputeEx(context); + ElementwiseComputeEx(context); } }; diff --git a/paddle/operators/elementwise_op_function.h b/paddle/operators/elementwise_op_function.h index e6f3e39eceb6552ed45c4d6ddd1788859b671af6..d749b8e8757d0d433be05876779ccc22b95ca80b 100644 --- a/paddle/operators/elementwise_op_function.h +++ b/paddle/operators/elementwise_op_function.h @@ -373,7 +373,7 @@ void ElementwiseComputeEx(const framework::ExecutionContext& ctx) { auto* x = ctx.Input("X"); auto* y = ctx.Input("Y"); auto* z = ctx.Output("Out"); - z->mutable_data(ctx.GetPlace()); + z->mutable_data(ctx.GetPlace()); TransformFunctor functor( x, y, z, ctx.template device_context(), Functor());