diff options
Diffstat (limited to 'tests/validation/reference/Im2Col.cpp')
-rw-r--r-- | tests/validation/reference/Im2Col.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/validation/reference/Im2Col.cpp b/tests/validation/reference/Im2Col.cpp index 076b2aba07..4d63696e67 100644 --- a/tests/validation/reference/Im2Col.cpp +++ b/tests/validation/reference/Im2Col.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -50,7 +50,7 @@ void im2col_nchw(const SimpleTensor<T> &src, SimpleTensor<T> &dst, const Size2D const int src_channels = src.shape().z(); const int batches = src.shape().total_size_upper(3); const int dst_height = dst.shape().y(); - const int pad_val = is_data_type_quantized_asymmetric(src.data_type()) ? src.quantization_info().offset : 0; + const int pad_val = is_data_type_quantized_asymmetric(src.data_type()) ? src.quantization_info().uniform().offset : 0; int dst_idx = 0; // Compute width and height of the convolved tensors @@ -105,7 +105,7 @@ void im2col_nhwc(const SimpleTensor<T> &src, SimpleTensor<T> &dst, const Size2D const int batches = src.shape().total_size_upper(3); const int dst_width = has_bias ? dst.shape().x() - 1 : dst.shape().x(); const int dst_height = dst.shape().y(); - const int pad_val = is_data_type_quantized_asymmetric(src.data_type()) ? src.quantization_info().offset : 0; + const int pad_val = is_data_type_quantized_asymmetric(src.data_type()) ? src.quantization_info().uniform().offset : 0; // Compute width and height of the convolved tensors std::pair<unsigned int, unsigned int> convolved_dims = scaled_dimensions(src_width, src_height, kernel_dims.width, kernel_dims.height, conv_info); |