From 1f9ca1d7737846c74053d68ee0844b448bae298b Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Thu, 1 Mar 2018 11:13:45 +0000 Subject: COMPMID-935 Implementing Convolution with Winograd on OpenCL (part 3) Change-Id: I51f92f30602fb0a02314f344fa67061f448694bf Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122793 Tested-by: Jenkins Reviewed-by: Giorgio Arena Reviewed-by: Gian Marco Iodice --- tests/validation/Helpers.h | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'tests/validation/Helpers.h') diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h index ba45968392..b192f317b4 100755 --- a/tests/validation/Helpers.h +++ b/tests/validation/Helpers.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -232,6 +232,34 @@ SimpleTensor convert_from_asymmetric(const SimpleTensor &src); * @return Quantized tensor. */ SimpleTensor convert_to_asymmetric(const SimpleTensor &src, const QuantizationInfo &quantization_info); + +/** Matrix multiply between 2 float simple tensors + * + * @param[in] a Input tensor A + * @param[in] b Input tensor B + * @param[out] out Output tensor + * + */ +void matrix_multiply(const SimpleTensor &a, const SimpleTensor &b, SimpleTensor &out); + +/** Transpose matrix + * + * @param[in] in Input tensor + * @param[out] out Output tensor + * + */ +void transpose_matrix(const SimpleTensor &in, SimpleTensor &out); + +/** Get a 2D tile from a tensor + * + * @note In case of out-of-bound reads, the tile will be filled with zeros + * + * @param[in] in Input tensor + * @param[out] tile Tile + * @param[in] coord Coordinates + */ +template +void get_tile(const SimpleTensor &in, SimpleTensor &tile, const Coordinates &coord); } // namespace validation } // namespace test } // namespace arm_compute -- cgit v1.2.1