MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / SimpleTensor

Method SimpleTensor

tests/SimpleTensor.h:269–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267
268template <typename T>
269SimpleTensor<T>::SimpleTensor(TensorShape shape, Format format)
270 : _buffer(nullptr), _shape(shape), _format(format), _quantization_info(), _data_layout(DataLayout::NCHW)
271{
272 _num_channels = num_channels();
273 _buffer = std::make_unique<T[]>(num_elements() * _num_channels);
274}
275
276template <typename T>
277SimpleTensor<T>::SimpleTensor(

Callers

nothing calls this directly

Calls 10

total_sizeMethod · 0.45
shapeMethod · 0.45
formatMethod · 0.45
data_typeMethod · 0.45
num_channelsMethod · 0.45
quantization_infoMethod · 0.45
data_layoutMethod · 0.45
num_elementsMethod · 0.45
dataMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected