MCPcopy Create free account
hub / github.com/Samsung/ONE / getTotalByteSizeOf

Function getTotalByteSizeOf

compiler/circle-eval-diff/src/InputDataLoader.cpp:73–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73size_t getTotalByteSizeOf(const std::vector<loco::Node *> &nodes)
74{
75 size_t total_byte_size = 0;
76
77 for (const auto node : nodes)
78 {
79 const auto input_node = loco::must_cast<const luci::CircleInput *>(node);
80 size_t byte_size = luci::size(input_node->dtype());
81
82 for (uint32_t index = 0; index < input_node->rank(); index++)
83 {
84 byte_size *= input_node->dim(index).value();
85 }
86
87 total_byte_size += byte_size;
88 }
89
90 return total_byte_size;
91}
92
93} // namespace circle_eval_diff
94

Callers 2

DirectoryLoaderMethod · 0.85
getMethod · 0.85

Calls 5

sizeFunction · 0.50
dtypeMethod · 0.45
rankMethod · 0.45
valueMethod · 0.45
dimMethod · 0.45

Tested by

no test coverage detected