Skip to content

MediaTek-NeuroPilot/tflite-neuron-delegate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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