38 void generate_range(SimpleTensor<T> &
dst,
float start,
const size_t num_of_elements,
float step)
41 for(
size_t index = 0; index < num_of_elements; index++)
43 dst[index] =
static_cast<T
>(val);
52 generate_range(dst, start, num_of_elements, step);
62 generate_range(dst_tmp, start, num_of_elements, step);
65 generate_range(dst, start, num_of_elements, step);
1 channel, 1 F32 per channel
DataType data_type() const override
Data type of the tensor.
TensorShape shape() const override
Shape of the tensor.
Copyright (c) 2017-2021 Arm Limited.
SimpleTensor< T > range(SimpleTensor< T > &dst, float start, const size_t num_of_elements, float step)
quantized, asymmetric fixed-point 8-bit number unsigned
Simple tensor object that stores elements in a consecutive chunk of memory.
QuantizationInfo quantization_info() const override
Quantization info in case of asymmetric quantized type.