| 38 | TfLiteStatus DelegatePrepare(TfLiteContext* context, TfLiteDelegate* delegate); |
| 39 | |
| 40 | InferencePriority 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 | |
| 51 | DataType ToDataType(TfLiteType data_type) { |
| 52 | switch (data_type) { |