tflite-neuron-delegate
tflite-neuron-delegate copied to clipboard
MediaTek's TFLite delegate
tflite-neuron-delegate
MediaTek's TFLite delegate
- Install the Android SDK and NDK. Set environmental variables
ANDROID_HOMEandANDROID_NDK_HOMEto SDK and NDK roots respectively. bazel build --config android_arm64 -c opt //neuron/java:tensorflow-lite-neuronthen you can getbazel-bin/neuron/java/tensorflow-lite-neuron.aarwhich can be used with Android app- (optional) You can build command line tools (
benchmark_model,imagenet_classification_eval,coco_object_detection_eval, andinference_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