MediaTek-NeuroPilot / tflite-neuron-delegate

MediaTek's TFLite delegate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tflite-neuron-delegate

MediaTek's TFLite delegate

  1. Install the Android SDK and NDK. Set environmental variables ANDROID_HOME and ANDROID_NDK_HOME to SDK and NDK roots respectively.
  2. bazel build --config android_arm64 -c opt //neuron/java:tensorflow-lite-neuron then you can get bazel-bin/neuron/java/tensorflow-lite-neuron.aar which can be used with Android app
  3. (optional) You can build command line tools (benchmark_model, imagenet_classification_eval, coco_object_detection_eval, and inference_diff ) with neuron_delegate enabled.
bazel build --config android_arm64 -c opt //neuron:benchmark_model_plus_neuron_delegate
bazel build --config android_arm64 -c opt //neuron:coco_object_detection_eval_plus_neuron_delegate
bazel build --config android_arm64 -c opt //neuron:imagenet_classification_eval_plus_neuron_delegate
bazel build --config android_arm64 -c opt //neuron:inference_diff_plus_neuron_delegate
bazel build --config android_arm64 -c opt //neuron:label_image_plus_neuron_delegate

or

bazel build --config android_arm64 -c opt //neuron:all

About

MediaTek's TFLite delegate

License:MIT License


Languages

Language:C++ 87.9%Language:C 7.3%Language:Starlark 3.3%Language:Java 1.5%