From d384ca3c11045f29e16ff431df080c0aed48bb70 Mon Sep 17 00:00:00 2001 From: zhaojiaying01 Date: Thu, 25 Oct 2018 12:01:58 +0800 Subject: [PATCH] revert opencl conv3x3 kernel --- src/operators/kernel/cl/conv_add_bn_relu_kernel.cpp | 2 +- src/operators/kernel/cl/conv_add_kernel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 c990d64f67..ecd0c0beef 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 2a21391c5e..d8064fd50e 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"); -- GitLab