diff --git a/src/operators/kernel/cl/conv_add_bn_relu_kernel.cpp b/src/operators/kernel/cl/conv_add_bn_relu_kernel.cpp index c990d64f67516a140f96d2cf3745823ca5546fef..ecd0c0beef93bd39f8c0dd0a39eaaa53ad5b2b4a 100644 --- a/src/operators/kernel/cl/conv_add_bn_relu_kernel.cpp +++ b/src/operators/kernel/cl/conv_add_bn_relu_kernel.cpp @@ -150,7 +150,7 @@ bool ConvAddBNReluKernel::Init( } else if (param->Filter()->dims()[2] == 3 && param->Filter()->dims()[3] == 3) { - param->Filter()->InitNImage(cl_helper_.CLContext(), + param->Filter()->InitCLImage(cl_helper_.CLContext(), cl_helper_.CLCommandQueue()); this->cl_helper_.AddKernel("conv_3x3", "conv_add_bn_relu_kernel.cl"); diff --git a/src/operators/kernel/cl/conv_add_kernel.cpp b/src/operators/kernel/cl/conv_add_kernel.cpp index 2a21391c5e82e31aeef51edc2185cd2b78e07ba4..d8064fd50e1e9bdf19418bb60541f541fec9fcfc 100644 --- a/src/operators/kernel/cl/conv_add_kernel.cpp +++ b/src/operators/kernel/cl/conv_add_kernel.cpp @@ -45,7 +45,7 @@ bool ConvAddKernel::Init(FusionConvAddParam *param) { } else if (param->Filter()->dims()[2] == 3 && param->Filter()->dims()[3] == 3) { - param->Filter()->InitNImage(cl_helper_.CLContext(), + param->Filter()->InitCLImage(cl_helper_.CLContext(), cl_helper_.CLCommandQueue()); this->cl_helper_.AddKernel("conv_3x3", "conv_add_kernel.cl");