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

Function numElements

compiler/circle-eval-diff/src/Tensor.cpp:27–33  ·  view source on GitHub ↗

Return number of elements of the node.

Source from the content-addressed store, hash-verified

25
26// Return number of elements of the node.
27uint32_t numElements(const luci::CircleNode *node)
28{
29 uint32_t num_elem = 1;
30 for (uint32_t i = 0; i < node->rank(); ++i)
31 num_elem *= node->dim(i).value();
32 return num_elem;
33}
34
35} // namespace
36

Callers 1

createEmptyTensorFunction · 0.70

Calls 3

rankMethod · 0.45
valueMethod · 0.45
dimMethod · 0.45

Tested by

no test coverage detected