diff options
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(); |