diff options
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. |