MediaTek's TFLite delegate
- Install the Android SDK and NDK. Set environmental variables
ANDROID_HOME
andANDROID_NDK_HOME
to SDK and NDK roots respectively. bazel build --config android_arm64 -c opt //neuron/java:tensorflow-lite-neuron
then you can getbazel-bin/neuron/java/tensorflow-lite-neuron.aar
which 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