diff --git a/paddle/framework/op_registry.h b/paddle/framework/op_registry.h index 6ba0784f1b83fe47a05ac305d025ed82fbe563b8..53d7ea7d9d2174748c88a10729311d6947f0b17f 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); \