diff --git a/paddle/framework/op_registry.h b/paddle/framework/op_registry.h index 0ac3ffda28edfc2cdf78bd82c033ec745b406658..3858cd7794d1b4e831d44b2fd54e4e5f53f5927f 100644 --- a/paddle/framework/op_registry.h +++ b/paddle/framework/op_registry.h @@ -414,7 +414,7 @@ class OpKernelRegistrar : public Registrar { "USE_OP_ITSELF must be called in global namespace"); \ extern int TouchOpRegistrar_##op_type(); \ static int use_op_itself_##op_type##_ __attribute__((unused)) = \ - TouchOpRegistrar_##op_type##() + TouchOpRegistrar_##op_type() #define USE_OP_KERNEL(op_type, DEVICE_TYPE) \ STATIC_ASSERT_GLOBAL_NAMESPACE( \ @@ -423,7 +423,7 @@ class OpKernelRegistrar : public Registrar { extern int TouchOpKernelRegistrar_##op_type##_##DEVICE_TYPE(); \ static int use_op_kernel_##op_type##_##DEVICE_TYPE##_ \ __attribute__((unused)) = \ - TouchOpKernelRegistrar_##op_type##_##DEVICE_TYPE##() + TouchOpKernelRegistrar_##op_type##_##DEVICE_TYPE() #ifdef PADDLE_ONLY_CPU #define USE_OP(op_type) \