diff options
author | Jenkins <bsgcomp@arm.com> | 2018-05-23 11:36:53 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-05-23 14:55:11 +0100 |
commit | b3a371bc429d2ba45e56baaf239d8200c2662a74 (patch) | |
tree | 554525e415c303d64a08722a755397852ebbb8e4 /tests/IAccessor.h | |
parent | 67c8c91522e5be8156b77f57e63c0253535c902a (diff) | |
download | armcl-b3a371bc429d2ba45e56baaf239d8200c2662a74.tar.gz armcl-b3a371bc429d2ba45e56baaf239d8200c2662a74.tar.bz2 armcl-b3a371bc429d2ba45e56baaf239d8200c2662a74.zip |
Diffstat (limited to 'tests/IAccessor.h')
-rw-r--r-- | tests/IAccessor.h | 58 |
1 files changed, 47 insertions, 11 deletions
diff --git a/tests/IAccessor.h b/tests/IAccessor.h index 3744fc8c0..609eafec1 100644 --- a/tests/IAccessor.h +++ b/tests/IAccessor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -40,34 +40,70 @@ public: /** Virtual destructor. */ virtual ~IAccessor() = default; - /** Shape of the tensor. */ + /** Shape of the tensor. + * + * @return the shape of the tensor. + */ virtual TensorShape shape() const = 0; - /** Size of each element in the tensor in bytes. */ + /** Size of each element in the tensor in bytes. + * + * @return the size of each element in the tensor in bytes. + */ virtual size_t element_size() const = 0; - /** Total size of the tensor in bytes. */ + /** Total size of the tensor in bytes. + * + * @return the total size of the tensor in bytes. + */ virtual size_t size() const = 0; - /** Image format of the tensor. */ + /** Image format of the tensor. + * + * @return the format of the tensor. + */ virtual Format format() const = 0; - /** Data type of the tensor. */ + /** Data layout of the tensor. + * + * @return the data layout of the tensor. + */ + virtual DataLayout data_layout() const = 0; + + /** Data type of the tensor. + * + * @return the data type of the tensor. + */ virtual DataType data_type() const = 0; - /** Number of channels of the tensor. */ + /** Number of channels of the tensor. + * + * @return the number of channels of the tensor. + */ virtual int num_channels() const = 0; - /** Number of elements of the tensor. */ + /** Number of elements of the tensor. + * + * @return the number of elements of the tensor. + */ virtual int num_elements() const = 0; - /** Available padding around the tensor. */ + /** Available padding around the tensor. + * + * @return the available padding around the tensor. + */ virtual PaddingSize padding() const = 0; - /** Number of bits for the fractional part. */ + /** Number of bits for the fractional part. + * + * @return the number of bits for the fractional part. + */ virtual int fixed_point_position() const = 0; - /** Quantization info in case of asymmetric quantized type */ + /** Quantization info in case of asymmetric quantized type + * + * @return + */ virtual QuantizationInfo quantization_info() const = 0; /** Read only access to the specified element. |