From be35b0ed7cb6fbf9010142aab97854c467b14c5c Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Tue, 11 Jul 2017 18:13:08 +0100 Subject: COMPMID-443: Collapse higher dimensions for activation layer Change-Id: I5943235aff1bb6440e3ab08e818d53aa5d94143a Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80349 Tested-by: Kaizen Reviewed-by: Georgios Pinitas --- src/core/CL/kernels/CLActivationLayerKernel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/CL/kernels/CLActivationLayerKernel.cpp b/src/core/CL/kernels/CLActivationLayerKernel.cpp index 5e8204fa1b..fda69b0b94 100644 --- a/src/core/CL/kernels/CLActivationLayerKernel.cpp +++ b/src/core/CL/kernels/CLActivationLayerKernel.cpp @@ -99,7 +99,8 @@ void CLActivationLayerKernel::run(const Window &window, cl::CommandQueue &queue) ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this); ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(ICLKernel::window(), window); - Window slice = window.first_slice_window_3D(); + Window collapsed = window.collapse_if_possible(ICLKernel::window(), Window::DimZ); + Window slice = collapsed.first_slice_window_3D(); do { @@ -111,5 +112,5 @@ void CLActivationLayerKernel::run(const Window &window, cl::CommandQueue &queue) } enqueue(queue, *this, slice); } - while(window.slide_window_slice_3D(slice)); + while(collapsed.slide_window_slice_3D(slice)); } -- cgit v1.2.1