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

Function IsValid

tensorflow/lite/delegates/gpu/api.cc:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53} // namespace
54
55bool IsValid(const ObjectDef& def) {
56 return def.data_type != DataType::UNKNOWN &&
57 def.data_layout != DataLayout::UNKNOWN &&
58 def.object_type != ObjectType::UNKNOWN;
59}
60
61ObjectType GetType(const TensorObject& object) {
62 return absl::visit(ObjectTypeGetter{}, object);

Callers 15

PrintBenchmarkUsageFunction · 0.85
WriteDataMethod · 0.85
ReadDataMethod · 0.85
GetObjectDefMethod · 0.85
GetTensorObjectMethod · 0.85
SetExternalObjectMethod · 0.85
IsSupportedMethod · 0.85
LoadModelMethod · 0.85
SetInputMethod · 0.85
ResetTensorMethod · 0.85
ReadOutputMethod · 0.85
InvokeMethod · 0.85

Calls 2

GetTypeFunction · 0.85
visitFunction · 0.50

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68