diff --git a/src/operators/kernel/cl/mul_kernel.cpp b/src/operators/kernel/cl/mul_kernel.cpp index 3edfd74c13ee4793f75613c6daefea07995349bc..c59483c14fd957a4e3a0dbb2e2436ef8db6cfcd3 100644 --- a/src/operators/kernel/cl/mul_kernel.cpp +++ b/src/operators/kernel/cl/mul_kernel.cpp @@ -25,9 +25,7 @@ bool MulKernel::Init(MulParam *param) { } template <> -void MulKernel::Compute(const MulParam ¶m) { - -} +void MulKernel::Compute(const MulParam ¶m) {} template class MulKernel; diff --git a/src/operators/mul_op.cpp b/src/operators/mul_op.cpp index 69e3bb300d741e74ab8d6eea6c62052b4d0d8f1d..ec9c8e225422bc9c0cda0550775e67c962426490 100644 --- a/src/operators/mul_op.cpp +++ b/src/operators/mul_op.cpp @@ -58,6 +58,9 @@ namespace ops = paddle_mobile::operators; #ifdef PADDLE_MOBILE_CPU REGISTER_OPERATOR_CPU(mul, ops::MulOp); #endif +#ifdef PADDLE_MOBILE_CL +REGISTER_OPERATOR_CL(mul, ops::MulOp); +#endif #ifdef PADDLE_MOBILE_MALI_GPU REGISTER_OPERATOR_MALI_GPU(mul, ops::MulOp); #endif