Skip to content

Commit

Permalink
Switch ARM64 builds to TFLite
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Lissy committed Jan 17, 2020
1 parent bd115ee commit 917d341
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ build:rpi3-armv8 --crosstool_top=//tools/arm_compiler/linaro-gcc72-aarch64:toolc
build:rpi3-armv8 --cpu=armv8 --define=target_system=rpi3-armv8
build:rpi3-armv8 --copt=-march=armv8-a --copt=-mtune=cortex-a53 --copt=-DRASPBERRY_PI --copt=-D_GLIBCXX_USE_CXX11_ABI=0 --copt=-std=gnu99
build:rpi3-armv8 --define=tensorflow_mkldnn_contraction_kernel=0
build:rpi3-armv8 --define=runtime=tflite
build:rpi3-armv8_opt --copt=-funsafe-math-optimizations --copt=-ftree-vectorize --copt=-pipe

# Options extracted from configure script
Expand Down
10 changes: 10 additions & 0 deletions tensorflow/lite/kernels/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ config_setting(
},
)

config_setting(
name = "rpi3-armv8",
define_values = {
"target_system": "rpi3-armv8"
},
)

config_setting(
name = "armeabi-v7a",
values = {
Expand Down Expand Up @@ -642,6 +649,9 @@ cc_library(
":rpi3": [
":neon_tensor_utils",
],
":rpi3-armv8": [
":neon_tensor_utils",
],
":haswell": [
":sse_tensor_utils",
],
Expand Down

0 comments on commit 917d341

Please sign in to comment.