提交 ebb3a588 编写于 作者: F fengjiayi

Fix bug

上级 e14a4541
......@@ -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) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册