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

Method TensorInfo

src/core/TensorInfo.cpp:37–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace arm_compute
36{
37TensorInfo::TensorInfo()
38 : _total_size(0),
39 _offset_first_element_in_bytes(0),
40 _strides_in_bytes(),
41 _num_channels(0),
42 _tensor_shape(),
43 _dims_state(),
44 _data_type(DataType::UNKNOWN),
45 _format(Format::UNKNOWN),
46 _is_resizable{true},
47 _valid_region{Coordinates(), _tensor_shape},
48 _padding{0},
49 _quantization_info(),
50 _data_layout(DataLayout::NCHW),
51 _are_values_constant(true),
52 _id(invalid_tensor_id),
53 _lock_paddings(false)
54{
55 _dims_state.fill(ITensorInfo::get_static_state_value());
56}
57
58TensorInfo::TensorInfo(const ITensorInfo &info) : TensorInfo()
59{

Callers

nothing calls this directly

Calls 15

CoordinatesClass · 0.50
TensorShapeClass · 0.50
initFunction · 0.50
fillMethod · 0.45
total_sizeMethod · 0.45
num_channelsMethod · 0.45
data_typeMethod · 0.45
formatMethod · 0.45
is_resizableMethod · 0.45
valid_regionMethod · 0.45
paddingMethod · 0.45

Tested by

no test coverage detected