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

Function GetDataType

tensorflow/lite/delegates/gpu/cl/kernels/util.cc:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276std::string GetDataType(DataType type) {
277 switch (type) {
278 case DataType::FLOAT16:
279 return "half";
280 case DataType::FLOAT32:
281 return "float";
282 default:
283 return "FLT";
284 }
285}
286
287std::string GetDataType4(DataType type) { return GetDataType(type) + "4"; }
288

Callers 3

GetToBhwcKernelMethod · 0.70
GetFromBhwcKernelMethod · 0.70
GetDataType4Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected