diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2018-03-02 11:21:38 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:48:33 +0000 |
commit | 4a65b9855f71fff11a4c18d2fa4bccc74303e5c6 (patch) | |
tree | 13b62f158e57913a55cd9bf409c77b7b4b3e71f2 /tests/CL/CLAccessor.h | |
parent | 898db6f31f015d077fb87ef82e22abea74a8f710 (diff) | |
download | ComputeLibrary-4a65b9855f71fff11a4c18d2fa4bccc74303e5c6.tar.gz |
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 <michalis.spyrou@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/CL/CLAccessor.h')
-rw-r--r-- | tests/CL/CLAccessor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/CL/CLAccessor.h b/tests/CL/CLAccessor.h index 9e7b73f34f..f2e13f1232 100644 --- a/tests/CL/CLAccessor.h +++ b/tests/CL/CLAccessor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -56,6 +56,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; @@ -102,6 +103,11 @@ inline Format CLAccessor::format() const return _tensor.info()->format(); } +inline DataLayout CLAccessor::data_layout() const +{ + return _tensor.info()->data_layout(); +} + inline DataType CLAccessor::data_type() const { return _tensor.info()->data_type(); |