aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/kernels/CLMeanStdDevNormalizationKernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CL/kernels/CLMeanStdDevNormalizationKernel.cpp')
-rw-r--r--src/core/CL/kernels/CLMeanStdDevNormalizationKernel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/CL/kernels/CLMeanStdDevNormalizationKernel.cpp b/src/core/CL/kernels/CLMeanStdDevNormalizationKernel.cpp
index a9baf24fa6..b110bac6c2 100644
--- a/src/core/CL/kernels/CLMeanStdDevNormalizationKernel.cpp
+++ b/src/core/CL/kernels/CLMeanStdDevNormalizationKernel.cpp
@@ -140,10 +140,8 @@ void CLMeanStdDevNormalizationKernel::run(const Window &window, cl::CommandQueue
{
unsigned int idx = 0;
add_2D_tensor_argument(idx, _input, slice);
- if(!_run_in_place)
- {
- add_2D_tensor_argument(idx, _output, slice);
- }
+ add_2D_tensor_argument_if((!_run_in_place), idx, _output, slice);
+
enqueue(queue, *this, slice, lws_hint());
}
while(window.slide_window_slice_2D(slice));