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

Function ToPriority

tensorflow/lite/delegates/gpu/cl/gpu_api_delegate.cc:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38TfLiteStatus DelegatePrepare(TfLiteContext* context, TfLiteDelegate* delegate);
39
40InferencePriority ToPriority(int32_t priority) {
41 switch (priority) {
42 case TfLiteGpuInferencePriority::
43 TFLITE_GPU_INFERENCE_PRIORITY_MAX_PRECISION:
44 return InferencePriority::MAX_PRECISION;
45 case TfLiteGpuInferencePriority::TFLITE_GPU_INFERENCE_PRIORITY_MIN_LATENCY:
46 return InferencePriority::MIN_LATENCY;
47 }
48 return InferencePriority::MAX_PRECISION;
49}
50
51DataType ToDataType(TfLiteType data_type) {
52 switch (data_type) {

Callers 1

PrepareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected