MCPcopy Create free account
hub / github.com/OAID/Tengine / GetTotalSize

Method GetTotalSize

core/lib/tensor.cpp:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54unsigned int Tensor::GetTotalSize(void) const
55{
56 unsigned int elem_size = DataType::GetTypeSize(data_type_);
57 unsigned int elem_num = shape_.GetSize();
58
59 return elem_size * elem_num;
60}
61
62Node* Tensor::GetConsumerNode(int idx)
63{

Callers 15

SetTensorDataMethod · 0.80
GetTensorDataMethod · 0.80
get_tensor_buffer_sizeFunction · 0.80
SaveTmSubgraphMethod · 0.80
SaveTmSubgraphMethod · 0.80
create_batch_norm_nodeFunction · 0.80
create_fc_nodeFunction · 0.80
create_prelu_nodeFunction · 0.80
create_scale_nodeFunction · 0.80
create_pooling_nodeFunction · 0.80
RunMethod · 0.80
CalculateMemBlocksFunction · 0.80

Calls 2

GetTypeSizeFunction · 0.70
GetSizeMethod · 0.45

Tested by 5

create_batch_norm_nodeFunction · 0.64
create_fc_nodeFunction · 0.64
create_prelu_nodeFunction · 0.64
create_scale_nodeFunction · 0.64
create_pooling_nodeFunction · 0.64