24 #ifndef __ARM_COMPUTE_TEST_RAW_TENSOR_H__ 25 #define __ARM_COMPUTE_TEST_RAW_TENSOR_H__ 68 _buffer = std::unique_ptr<uint8_t[]>(
reinterpret_cast<uint8_t *
>(tensor._buffer.release()));
69 _shape = std::move(tensor._shape);
70 _format = tensor._format;
71 _data_type = tensor._data_type;
72 _num_channels = tensor._num_channels;
73 _fixed_point_position = tensor._fixed_point_position;
74 _data_layout = tensor._data_layout;
87 cast._buffer = std::unique_ptr<T[]>(
reinterpret_cast<T *
>(_buffer.release()));
88 cast._shape = std::move(_shape);
89 cast._format = _format;
90 cast._data_type = _data_type;
91 cast._num_channels = _num_channels;
92 cast._fixed_point_position = _fixed_point_position;
93 cast._data_layout = _data_layout;
~RawTensor()=default
Default destructor.
Subclass of SimpleTensor using uint8_t as value type.
RawTensor & operator=(RawTensor tensor)
Copy the given tensor.
Format format() const override
Image format of the tensor.
DataType data_type() const override
Data type of the tensor.
TensorShape shape() const override
Shape of the tensor.
const void * operator()(const Coordinates &coord) const override
Read only access to the specified element.
This file contains all available output stages for GEMMLowp on OpenCL.
Format
Image colour formats.
RawTensor(SimpleTensor< T > &&tensor)
Conversion constructor from SimpleTensor.
Simple tensor object that stores elements in a consecutive chunk of memory.
int num_channels() const override
Number of channels of the tensor.
RawTensor(TensorShape shape, Format format, int fixed_point_position=0)
Create an uninitialised tensor of the given shape and format.
DataType
Available data types.
int fixed_point_position() const override
Number of bits for the fractional part.