Skip to content

Commit f926922

Browse files
angersontensorflower-gardener
authored andcommitted
Explicitly specify TFLite demo assets in BUILD file
PiperOrigin-RevId: 175617982
1 parent 58c1aaf commit f926922

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

tensorflow/contrib/lite/java/demo/app/src/main/BUILD

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ android_binary(
66
name = "TfLiteCameraDemo",
77
srcs = glob(["java/**/*.java"]),
88
assets = [
9-
":assets",
9+
"@tflite_mobilenet//:labels.txt",
10+
"@tflite_mobilenet//:mobilenet_quant_v1_224.tflite",
1011
],
1112
assets_dir = "",
1213
custom_package = "com.example.android.tflitecamerademo",
@@ -27,13 +28,6 @@ android_binary(
2728
],
2829
)
2930

30-
filegroup(
31-
name = "assets",
32-
srcs = [
33-
"@tflite_mobilenet//:model_files",
34-
],
35-
)
36-
3731
filegroup(
3832
name = "all_files",
3933
srcs = glob(

tensorflow/contrib/lite/java/demo/app/src/main/assets/BUILD

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ package(default_visibility = ["//visibility:private"])
22

33
licenses(["notice"]) # Apache 2.0
44

5-
filegroup(
6-
name = "assets_files",
7-
srcs = glob(
5+
exports_files(
6+
glob(
87
["**/*"],
98
exclude = [
109
"BUILD",
1110
],
1211
),
13-
visibility = ["//visibility:public"],
1412
)
1513

1614
filegroup(

third_party/tflite_mobilenet.BUILD

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ package(default_visibility = ["//visibility:public"])
22

33
licenses(["notice"]) # Apache 2.0
44

5-
filegroup(
6-
name = "model_files",
7-
srcs = glob(
5+
exports_files(
6+
glob(
87
["**/*"],
98
exclude = [
109
"BUILD",

0 commit comments

Comments
 (0)