From 4a65b9855f71fff11a4c18d2fa4bccc74303e5c6 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Fri, 2 Mar 2018 11:21:38 +0000 Subject: COMPMID-991: Add data layout information to the test framework Change-Id: Iccf66f7476e697e8fdee5a7441cc06b936bbba09 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122986 Reviewed-by: Michalis Spyrou Tested-by: Jenkins --- tests/NEON/Accessor.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/NEON') diff --git a/tests/NEON/Accessor.h b/tests/NEON/Accessor.h index 2bad53b3fe..e285f227de 100644 --- a/tests/NEON/Accessor.h +++ b/tests/NEON/Accessor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -50,6 +50,7 @@ public: size_t element_size() const override; size_t size() const override; Format format() const override; + DataLayout data_layout() const override; DataType data_type() const override; int num_channels() const override; int num_elements() const override; @@ -90,6 +91,11 @@ inline Format Accessor::format() const return _tensor.info()->format(); } +inline DataLayout Accessor::data_layout() const +{ + return _tensor.info()->data_layout(); +} + inline DataType Accessor::data_type() const { return _tensor.info()->data_type(); -- cgit v1.2.1