提交 94a6b1fa 编写于 作者: F fengjiayi

rename a macro

上级 bf4da3d9
...@@ -466,7 +466,7 @@ class GradOpRegisterHelper { ...@@ -466,7 +466,7 @@ class GradOpRegisterHelper {
*/ */
#define REGISTER_GRADIENT_OP(__op_type, __op_class) \ #define REGISTER_GRADIENT_OP(__op_type, __op_class) \
STATIC_ASSERT_GLOBAL_NAMESPACE( \ STATIC_ASSERT_GLOBAL_NAMESPACE( \
__reg_op__##__op_type, \ __reg_gradient_op_##__reg_op__##__op_type, \
"REGISTER_GRADIENT_OP must be in global namespace"); \ "REGISTER_GRADIENT_OP must be in global namespace"); \
static ::paddle::framework::GradOpRegisterHelper<__op_class> \ static ::paddle::framework::GradOpRegisterHelper<__op_class> \
__op_register_##__op_type##__(#__op_type); \ __op_register_##__op_type##__(#__op_type); \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册