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

Function NumElements

tensorflow/lite/delegates/gpu/gl/object.h:116–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114} // namespace internal_object
115
116inline size_t NumElements(const ObjectSize& size) {
117 return absl::visit(internal_object::ObjectSizer{}, size);
118}
119
120inline size_t ByteSizeOf(const Object& object) {
121 return SizeOf(object.data_type) * /* vec4 */ 4 * NumElements(object.size);

Callers 10

AddUsageRecordFunction · 0.70
ByteSizeOfFunction · 0.70
ReadTensorMethod · 0.50
IsSupportedMethod · 0.50
AddTensorMethod · 0.50
InvokeMethod · 0.50
BuildGraphMethod · 0.50

Calls 1

visitFunction · 0.50

Tested by

no test coverage detected