提交 e8a0e92b 编写于 作者: F fengjiayi

Fix compile error

上级 ae6009df
...@@ -22,7 +22,7 @@ TEST(AddOp, GetOpProto) { ...@@ -22,7 +22,7 @@ TEST(AddOp, GetOpProto) {
auto& protos = paddle::framework::OpRegistry::protos(); auto& protos = paddle::framework::OpRegistry::protos();
auto it = protos.find("add_two"); auto it = protos.find("add_two");
ASSERT_NE(it, protos.end()); ASSERT_NE(it, protos.end());
auto& grad_creators = paddle::framework::OpRegistry::grad_creators(); auto& op_creators = paddle::framework::OpRegistry::op_creators();
auto it1 = grad_creators.find("add_two"); auto it1 = op_creators.find("add_two_grad");
ASSERT_NE(it1, grad_creators.end()); ASSERT_NE(it1, op_creators.end());
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册