From 94a6b1fa43f9e47b52bb6bb4841ffbc4f9bdfbfc Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Wed, 19 Jul 2017 14:29:02 +0800 Subject: [PATCH] rename a macro --- paddle/framework/op_registry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/framework/op_registry.h b/paddle/framework/op_registry.h index 6ba0784f1b8..53d7ea7d9d2 100644 --- a/paddle/framework/op_registry.h +++ b/paddle/framework/op_registry.h @@ -466,7 +466,7 @@ class GradOpRegisterHelper { */ #define REGISTER_GRADIENT_OP(__op_type, __op_class) \ STATIC_ASSERT_GLOBAL_NAMESPACE( \ - __reg_op__##__op_type, \ + __reg_gradient_op_##__reg_op__##__op_type, \ "REGISTER_GRADIENT_OP must be in global namespace"); \ static ::paddle::framework::GradOpRegisterHelper<__op_class> \ __op_register_##__op_type##__(#__op_type); \ -- GitLab