MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ByteSize

Function ByteSize

tensorflow/compiler/xla/tools/driver.cc:115–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115int ByteSize(PrimitiveType type) {
116 std::string s = ToString(type);
117 s = s.substr(1, s.size());
118 return std::stoi(s) / 8;
119}
120
121struct ArrayShape {
122 PrimitiveType type;

Callers 1

mainFunction · 0.85

Calls 2

ToStringFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected