diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-11-10 18:14:06 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 283c1790da45ab562ecfb2aa7741297191886d85 (patch) | |
tree | 45956bb79167e17aa634fd5f4d05c68ba059274c /arm_compute/core/TensorInfo.h | |
parent | 624b77859dc9d0618056dad66833b9c37033337b (diff) | |
download | ComputeLibrary-283c1790da45ab562ecfb2aa7741297191886d85.tar.gz |
COMPMID-676: Rework TensorInfo building
Change-Id: Ic98f64ffe30739437a1fe31ef98d83ee900741e3
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/95512
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/TensorInfo.h')
-rw-r--r-- | arm_compute/core/TensorInfo.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/arm_compute/core/TensorInfo.h b/arm_compute/core/TensorInfo.h index 5d1ee7c578..2383f2db21 100644 --- a/arm_compute/core/TensorInfo.h +++ b/arm_compute/core/TensorInfo.h @@ -34,6 +34,7 @@ #include "arm_compute/core/Utils.h" #include <cstddef> +#include <memory> namespace arm_compute { @@ -212,11 +213,13 @@ public: size_t init_auto_padding(const HOGInfo &hog_info, unsigned int width, unsigned int height); // Inherited methods overridden: - void set_data_type(DataType data_type) override; - void set_num_channels(int num_channels) override; - void set_format(Format format) override; - void set_tensor_shape(TensorShape shape) override; - void set_fixed_point_position(int fixed_point_position) override; + std::unique_ptr<ITensorInfo> clone() const override; + ITensorInfo &set_data_type(DataType data_type) override; + ITensorInfo &set_num_channels(int num_channels) override; + ITensorInfo &set_format(Format format) override; + ITensorInfo &set_tensor_shape(TensorShape shape) override; + ITensorInfo &set_fixed_point_position(int fixed_point_position) override; + ITensorInfo &set_quantization_info(QuantizationInfo quantization_info) override; bool auto_padding() override; bool extend_padding(const PaddingSize &padding) override; size_t dimension(size_t index) const override @@ -292,10 +295,6 @@ public: { return _quantization_info; } - void set_quantization_info(QuantizationInfo quantization_info) override - { - _quantization_info = quantization_info; - } private: /** Calculates strides, offset and total size resulting from the specified padding around the XY plane. |