24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_RAW_TENSOR_H
25 #define ARM_COMPUTE_TEST_RAW_TENSOR_H
66 _buffer = std::unique_ptr<uint8_t[]>(
reinterpret_cast<uint8_t *
>(
tensor._buffer.release()));
67 _shape = std::move(
tensor._shape);
69 _data_type =
tensor._data_type;
70 _num_channels =
tensor._num_channels;
71 _data_layout =
tensor._data_layout;
84 cast._buffer = std::unique_ptr<T[]>(
reinterpret_cast<T *
>(_buffer.release()));
85 cast._shape = std::move(_shape);
86 cast._format = _format;
87 cast._data_type = _data_type;
88 cast._num_channels = _num_channels;
89 cast._data_layout = _data_layout;
RawTensor & operator=(RawTensor tensor)
Copy the given tensor.
~RawTensor()=default
Default destructor.
TensorShape shape() const override
Shape of the tensor.
int num_channels() const override
Number of channels of the tensor.
RawTensor(SimpleTensor< T > &&tensor)
Conversion constructor from SimpleTensor.
DataType data_type() const override
Data type of the tensor.
CLTensor * tensor
Pointer to the auxiliary tensor.
const void * operator()(const Coordinates &coord) const override
Read only access to the specified element.
Format
Image colour formats.
Simple tensor object that stores elements in a consecutive chunk of memory.
Copyright (c) 2017-2024 Arm Limited.
Format format() const override
Image format of the tensor.
Subclass of SimpleTensor using uint8_t as value type.
DataType
Available data types.