49 for(uint32_t i = 0; i < num_elements; ++i)
55 std::copy_n(static_cast<const T *>(
src(src_coords)), src.
num_channels(),
static_cast<T *
>(
dst(dst_coords)));
DataType data_type() const override
Data type of the tensor.
SimpleTensor< T > permute(const SimpleTensor< T > &src, PermutationVector perm)
TensorShape shape() const override
Shape of the tensor.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
Coordinates index2coord(const TensorShape &shape, int index)
Convert a linear index into n-dimensional coordinates.
Strides of an item in bytes.
Simple tensor object that stores elements in a consecutive chunk of memory.
int num_channels() const override
Number of channels of the tensor.
int num_elements() const override
Number of elements of the tensor.
QuantizationInfo quantization_info() const override
Quantization info in case of asymmetric quantized type.