diff options
author | Ioan-Cristian Szabo <ioan-cristian.szabo@arm.com> | 2017-10-27 17:35:40 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:47:18 +0000 |
commit | 91d20d95df35961d3eb5de497007d98576118d19 (patch) | |
tree | 13042e212d65fbf5bd7425079bb72b6bd1e2e84d /tests/Utils.h | |
parent | 19835e591cb0b66a0f5000ae1505bf299e50337d (diff) | |
download | ComputeLibrary-91d20d95df35961d3eb5de497007d98576118d19.tar.gz |
COMPMID-582: Add validation to channel_extract kernels.
Change-Id: I6413a05f6870a0d04f12d7348269b15297ae8493
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/114696
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/Utils.h')
-rw-r--r-- | tests/Utils.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/Utils.h b/tests/Utils.h index 750d907778..27e0397b6b 100644 --- a/tests/Utils.h +++ b/tests/Utils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -500,6 +500,22 @@ inline T create_tensor(const TensorShape &shape, Format format) return tensor; } +/** Create and initialize a multi-image of the given type. + * + * @param[in] shape Tensor shape. + * @param[in] format Format type. + * + * @return Initialized tensor of given type. + */ +template <typename T> +inline T create_multi_image(const TensorShape &shape, Format format) +{ + T multi_image; + multi_image.init(shape.x(), shape.y(), format); + + return multi_image; +} + /** Create and initialize a HOG (Histogram of Oriented Gradients) of the given type. * * @param[in] cell_size Cell size in pixels |