diff --git a/paddle/operators/add_op_test.cc b/paddle/operators/add_op_test.cc index 7fc1049893e171a17af92da7e813b2463874c9de..3d52f5498323dbb7ca0ff25d038947f0ddb2017e 100644 --- a/paddle/operators/add_op_test.cc +++ b/paddle/operators/add_op_test.cc @@ -22,7 +22,7 @@ TEST(AddOp, GetOpProto) { auto& protos = paddle::framework::OpRegistry::protos(); auto it = protos.find("add_two"); ASSERT_NE(it, protos.end()); - auto& grad_creators = paddle::framework::OpRegistry::grad_creators(); - auto it1 = grad_creators.find("add_two"); - ASSERT_NE(it1, grad_creators.end()); + auto& op_creators = paddle::framework::OpRegistry::op_creators(); + auto it1 = op_creators.find("add_two_grad"); + ASSERT_NE(it1, op_creators.end()); }