From 55e167814d462a803dbac82db17603cbe1258b4f Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Tue, 15 Jan 2019 13:21:57 +0000 Subject: COMPMID-1724: CL Implement Prod fix Change-Id: I9cf07afe6198e3364ede06faaa9a09a782a34792 Reviewed-on: https://review.mlplatform.org/519 Tested-by: Arm Jenkins Reviewed-by: Michalis Spyrou --- src/runtime/CL/functions/CLDepthConcatenateLayer.cpp | 4 ++-- src/runtime/CL/functions/CLNormalizationLayer.cpp | 4 ++-- src/runtime/CL/functions/CLReductionOperation.cpp | 4 ++-- src/runtime/CL/functions/CLWinogradInputTransform.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/runtime/CL') diff --git a/src/runtime/CL/functions/CLDepthConcatenateLayer.cpp b/src/runtime/CL/functions/CLDepthConcatenateLayer.cpp index b5e8fd96d0..e46647a20c 100644 --- a/src/runtime/CL/functions/CLDepthConcatenateLayer.cpp +++ b/src/runtime/CL/functions/CLDepthConcatenateLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -66,7 +66,7 @@ void CLDepthConcatenateLayer::configure(const std::vector &inputs_v for(unsigned int i = 0; i < _num_inputs; i++) { _concat_kernels_vector[i].configure(inputs_vector.at(i), depth_offset, output); - _border_handlers_vector[i].configure(inputs_vector.at(i), _concat_kernels_vector[i].border_size(), BorderMode::CONSTANT, PixelValue(0)); + _border_handlers_vector[i].configure(inputs_vector.at(i), _concat_kernels_vector[i].border_size(), BorderMode::CONSTANT, PixelValue()); depth_offset += inputs_vector.at(i)->info()->dimension(2); } diff --git a/src/runtime/CL/functions/CLNormalizationLayer.cpp b/src/runtime/CL/functions/CLNormalizationLayer.cpp index 32d8f15344..8489fab68b 100644 --- a/src/runtime/CL/functions/CLNormalizationLayer.cpp +++ b/src/runtime/CL/functions/CLNormalizationLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -45,7 +45,7 @@ void CLNormalizationLayer::configure(ICLTensor *input, ICLTensor *output, const _norm_kernel.configure(input, output, norm_info); // Fill the border by 3 elements since we need vload4 in the IN_MAP normalization kernel - _border_handler.configure(input, _norm_kernel.border_size(), BorderMode::CONSTANT, PixelValue(0)); + _border_handler.configure(input, _norm_kernel.border_size(), BorderMode::CONSTANT, PixelValue()); } Status CLNormalizationLayer::validate(const ITensorInfo *input, const ITensorInfo *output, const NormalizationLayerInfo &norm_info) diff --git a/src/runtime/CL/functions/CLReductionOperation.cpp b/src/runtime/CL/functions/CLReductionOperation.cpp index e2dec6b375..3d82e3f0d9 100644 --- a/src/runtime/CL/functions/CLReductionOperation.cpp +++ b/src/runtime/CL/functions/CLReductionOperation.cpp @@ -165,13 +165,13 @@ void CLReductionOperation::configure(ICLTensor *input, ICLTensor *output, unsign first_kernel_op = ReductionOperation::SUM; intermediate_kernel_op = ReductionOperation::SUM; last_kernel_op = op; - pixelValue = PixelValue(0); + pixelValue = PixelValue(); break; case ReductionOperation::SUM_SQUARE: first_kernel_op = ReductionOperation::SUM_SQUARE; intermediate_kernel_op = ReductionOperation::SUM; last_kernel_op = ReductionOperation::SUM; - pixelValue = PixelValue(0); + pixelValue = PixelValue(); break; case ReductionOperation::PROD: first_kernel_op = ReductionOperation::PROD; diff --git a/src/runtime/CL/functions/CLWinogradInputTransform.cpp b/src/runtime/CL/functions/CLWinogradInputTransform.cpp index 09e84564e2..7361eb2baa 100644 --- a/src/runtime/CL/functions/CLWinogradInputTransform.cpp +++ b/src/runtime/CL/functions/CLWinogradInputTransform.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -35,7 +35,7 @@ void CLWinogradInputTransform::configure(ICLTensor *input, ICLTensor *output, co auto k = arm_compute::support::cpp14::make_unique(); k->configure(input, output, winograd_info); _kernel = std::move(k); - _border_handler.configure(input, _kernel->border_size(), BorderMode::CONSTANT, PixelValue(0)); + _border_handler.configure(input, _kernel->border_size(), BorderMode::CONSTANT, PixelValue()); } Status CLWinogradInputTransform::validate(const ITensorInfo *input, const ITensorInfo *output, const WinogradInfo &winograd_info) -- cgit v1.2.1