From 90202188ac4108d0f0168d5618bbedf70b9ba08d Mon Sep 17 00:00:00 2001 From: YuanRisheng Date: Fri, 21 Jan 2022 06:26:27 +0000 Subject: [PATCH] fix unit test bug --- paddle/fluid/operators/reduce_ops/reduce_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/reduce_ops/reduce_op.h b/paddle/fluid/operators/reduce_ops/reduce_op.h index 7200963a7097f..2e5bd7a42b1d1 100644 --- a/paddle/fluid/operators/reduce_ops/reduce_op.h +++ b/paddle/fluid/operators/reduce_ops/reduce_op.h @@ -551,7 +551,7 @@ class ReduceOp : public framework::OperatorWithKernel { framework::KernelSignature GetExpectedPtenKernelArgs( const framework::ExecutionContext& ctx) const override { - bool reduce_all = ctx.Attr("reduce_all"); + bool reduce_all = ctx.Attr("reduce_all"); if (Type() == "reduce_sum") { if (ctx.InputVar("X")->IsType()) { if (!reduce_all) {