diff --git a/src/operators/kernel/cl/relu_kernel.cpp b/src/operators/kernel/cl/relu_kernel.cpp index 91eab240e787fa9115df0221c3939a31feee2212..5c8e6886393e23e9c21c55897a96908938083b1c 100644 --- a/src/operators/kernel/cl/relu_kernel.cpp +++ b/src/operators/kernel/cl/relu_kernel.cpp @@ -24,7 +24,7 @@ bool ReluKernel::Init(ReluParam* param) { this->cl_helper_.AddKernel("relu_p0", "relu.cl"); this->cl_helper_.AddKernel("relu_p1", "relu.cl"); const auto dim = const_cast(param->InputX())->ImageDims(); - param->getMidImage().InitEmptyImage(this->cl_helper_.CLContext(), dim); + param->getMidImage().InitEmptyImage(this->cl_helper_.CLContext(), this->cl_helper_.CLCommandQueue(), dim); return true; }