Skip to content

Commit

Permalink
Remove unused xnnpack option in android (* enabled by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
asus4 committed Sep 5, 2023
1 parent 4d2fea2 commit 66b4ee7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build_tflite.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ def build_ios():
# run_cmd('bazel build -c opt --config=ios --ios_multi_cpus=armv7,arm64,x86_64 //tensorflow/lite/ios:TensorFlowLiteSelectTfOps_framework')
# unzip('bazel-bin/tensorflow/lite/ios/TensorFlowLiteSelectTfOps_framework.zip', 'iOS')

def build_android(enable_xnnpack = True):
def build_android():
# Main
option_xnnpack = 'true' if enable_xnnpack else 'false'
run_cmd(f'bazel build -c opt --fat_apk_cpu=arm64-v8a,armeabi-v7a,x86_64 //tensorflow/lite/java:tensorflow-lite')
copy('bazel-bin/tensorflow/lite/java/tensorflow-lite.aar', 'Android')

Expand Down Expand Up @@ -173,4 +172,4 @@ def build_android(enable_xnnpack = True):
if args.android:
# Need to set Android build option in ./configure
print('Build Android')
build_android(args.xnnpack)
build_android()

0 comments on commit 66b4ee7

Please sign in to comment.