From 32e8b49e17f53a88afc93fb64320656201bbb32c Mon Sep 17 00:00:00 2001 From: zhaojiaying01 Date: Wed, 17 Oct 2018 21:46:31 +0800 Subject: [PATCH] fix compilation problem --- src/operators/kernel/cl/depthwise_conv_kernel.cpp | 2 +- src/operators/kernel/cl/fetch_kernel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operators/kernel/cl/depthwise_conv_kernel.cpp b/src/operators/kernel/cl/depthwise_conv_kernel.cpp index ad0c9958f8..b84a56ca97 100644 --- a/src/operators/kernel/cl/depthwise_conv_kernel.cpp +++ b/src/operators/kernel/cl/depthwise_conv_kernel.cpp @@ -47,7 +47,7 @@ void DepthwiseConvKernel::Compute( int nh = default_work_size[2]; auto input = param.Input()->GetCLImage(); auto filter = param.Filter()->GetCLImage(); - auto output = param.Output(); + auto output = param.Output()->GetCLImage(); int stride = param.Strides()[0]; int offset = param.Offset(); int input_c = param.Input()->CBlock(); diff --git a/src/operators/kernel/cl/fetch_kernel.cpp b/src/operators/kernel/cl/fetch_kernel.cpp index fcf087aade..87a892ee9c 100644 --- a/src/operators/kernel/cl/fetch_kernel.cpp +++ b/src/operators/kernel/cl/fetch_kernel.cpp @@ -58,7 +58,7 @@ void FetchKernel::Compute(const FetchParam ¶m) { clEnqueueNDRangeKernel(this->cl_helper_.CLCommandQueue(), kernel, 3, NULL, default_work_size.data(), NULL, 0, NULL, NULL); - memcpy(out->data(), out_cl_tensor.Data(), out->memory_size()); + memcpy(out->data(), out_cl_tensor.Data(), out->memory_size()); } template class FetchKernel; -- GitLab