Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
115
int ByteSize(PrimitiveType type) {
116
std::string s = ToString(type);
117
s = s.substr(1, s.size());
118
return std::stoi(s) / 8;
119
}
120
121
struct ArrayShape {
122
PrimitiveType type;
Callers
1
main
Function · 0.85
Calls
2
ToString
Function · 0.70
size
Method · 0.45
Tested by
no test coverage detected