From 9c6718c0f1b9d22905dd1a35cd0d952871bc8cd6 Mon Sep 17 00:00:00 2001 From: Liangliang He Date: Fri, 1 Dec 2017 18:46:42 +0800 Subject: [PATCH] Make kernel acc type same as op --- mace/kernels/opencl/resize_bilinear_opencl.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mace/kernels/opencl/resize_bilinear_opencl.cc b/mace/kernels/opencl/resize_bilinear_opencl.cc index 15355bd5..67d74ed3 100644 --- a/mace/kernels/opencl/resize_bilinear_opencl.cc +++ b/mace/kernels/opencl/resize_bilinear_opencl.cc @@ -40,8 +40,9 @@ void ResizeBilinearFunctor::operator()( auto runtime = OpenCLRuntime::Get(); std::set built_options; - built_options.emplace("-DDATA_TYPE=" + DataTypeToCLType(input->dtype())); - built_options.emplace("-DCMD_DATA_TYPE=" + DataTypeToOPENCLCMDDataType(input->dtype())); + auto dt = DataTypeToEnum::value; + built_options.emplace("-DDATA_TYPE=" + DataTypeToCLType(dt)); + built_options.emplace("-DCMD_DATA_TYPE=" + DataTypeToOPENCLCMDDataType(dt)); auto rb_kernel = runtime->BuildKernel("resize_bilinear", "resize_bilinear_nocache", built_options); const uint32_t kwg_size = runtime->GetKernelMaxWorkGroupSize(rb_kernel); -- GitLab