From e8a0e92b5f00c19b066cc4b94adeeecd2ca4cbab Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Tue, 25 Jul 2017 10:54:15 +0800 Subject: [PATCH] Fix compile error --- paddle/operators/add_op_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/operators/add_op_test.cc b/paddle/operators/add_op_test.cc index 7fc104989..3d52f5498 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()); } -- GitLab