diff options
Diffstat (limited to 'src/core/CL/kernels/CLGEMMLowpOffsetContributionOutputStageKernel.cpp')
-rw-r--r-- | src/core/CL/kernels/CLGEMMLowpOffsetContributionOutputStageKernel.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/core/CL/kernels/CLGEMMLowpOffsetContributionOutputStageKernel.cpp b/src/core/CL/kernels/CLGEMMLowpOffsetContributionOutputStageKernel.cpp index 8fba342e74..1852262337 100644 --- a/src/core/CL/kernels/CLGEMMLowpOffsetContributionOutputStageKernel.cpp +++ b/src/core/CL/kernels/CLGEMMLowpOffsetContributionOutputStageKernel.cpp @@ -281,18 +281,9 @@ void CLGEMMLowpOffsetContributionOutputStageKernel::run(const Window &window, cl { unsigned int idx = 0; add_3D_tensor_argument(idx, _mm_result, slice); - if(_vector_sum_col != nullptr) - { - add_2D_tensor_argument(idx, _vector_sum_col, win_vector_sum_col); - } - if(_vector_sum_row != nullptr) - { - add_2D_tensor_argument(idx, _vector_sum_row, win_vector_sum_row); - } - if(_bias != nullptr) - { - add_1D_tensor_argument(idx, _bias, biases_slice); - } + add_2D_tensor_argument_if((_vector_sum_col != nullptr), idx, _vector_sum_col, win_vector_sum_col); + add_2D_tensor_argument_if((_vector_sum_row != nullptr), idx, _vector_sum_row, win_vector_sum_row); + add_1D_tensor_argument_if((_bias != nullptr), idx, _bias, biases_slice); add_3D_tensor_argument(idx, _output, slice); enqueue(queue, *this, slice, lws_hint()); } |