commit | d051e97e36b9981f411093904cc019c2c7f9ac75 | [log] [tgz] |
---|---|---|
author | Giorgio Arena <giorgio.arena@arm.com> | Wed Jun 20 11:46:42 2018 +0100 |
committer | Anthony Barbier <anthony.barbier@arm.com> | Fri Nov 02 16:53:57 2018 +0000 |
tree | 5ed3b8cb513928aac450f5ff9440e5a3fa017217 | |
parent | f1c2bf0971dd1c996da149faf3dd669d566074c7 [diff] [blame] |
COMPMID-811 Add NHWC data format support for CL depthwise convolution Change-Id: I574f7945f0be009c638d860028bce8b52b4120fd Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/136484 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
diff --git a/src/core/CL/kernels/CLDirectConvolutionOutputStageKernel.cpp b/src/core/CL/kernels/CLDirectConvolutionOutputStageKernel.cpp index 1a6dc14..c6147ee 100644 --- a/src/core/CL/kernels/CLDirectConvolutionOutputStageKernel.cpp +++ b/src/core/CL/kernels/CLDirectConvolutionOutputStageKernel.cpp
@@ -168,6 +168,7 @@ // Create kernel CLBuildOptions build_opts; build_opts.add_option_if(bias != nullptr, "-DHAS_BIAS"); + build_opts.add_option("-D" + string_from_data_layout(input->info()->data_layout())); _kernel = static_cast<cl::Kernel>(CLKernelLibrary::get().create_kernel("output_stage_quantized", build_opts.options())); // Set static kernel arguments