From d12b1e77f4049b85643e852797bd40990e5cbc8b Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Thu, 3 Aug 2017 14:51:37 -0700 Subject: [PATCH] Rename EmptyOp into NOP --- paddle/framework/grad_op_builder_test.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/paddle/framework/grad_op_builder_test.cc b/paddle/framework/grad_op_builder_test.cc index 3bc47e6f42..96d7f309d6 100644 --- a/paddle/framework/grad_op_builder_test.cc +++ b/paddle/framework/grad_op_builder_test.cc @@ -8,7 +8,7 @@ USE_OP(add_two); namespace paddle { namespace framework { -class EmptyOp : public OperatorBase { +class NOP : public OperatorBase { public: void InferShape(const Scope &scope) const override {} void Run(const Scope &scope, @@ -61,10 +61,10 @@ TEST(GradOpBuilder, AddTwo) { EXPECT_EQ(grad_add_op->Output("Y@GRAD"), "y@GRAD"); } -REGISTER_OP(mult_io, f::EmptyOp, f::MutiInOutOpMaker); -REGISTER_GRADIENT_OP(mult_io, mult_io_grad, f::EmptyOp); -REGISTER_OP(io_ignored, f::EmptyOp, f::IOIgnoredOpMaker); -REGISTER_GRADIENT_OP(io_ignored, io_ignored_grad, f::EmptyOp); +REGISTER_OP(mult_io, f::NOP, f::MutiInOutOpMaker); +REGISTER_GRADIENT_OP(mult_io, mult_io_grad, f::NOP); +REGISTER_OP(io_ignored, f::NOP, f::IOIgnoredOpMaker); +REGISTER_GRADIENT_OP(io_ignored, io_ignored_grad, f::NOP); TEST(GradOpBuilder, MutiInOut) { f::AttributeMap attrs{{"input_format", std::vector{0, 1, 4, 5}}, -- GitLab