Skip to content

Commit

Permalink
Update the version of TensorFlow used by the TF Lite Support Library
Browse files Browse the repository at this point in the history
to a snapshot that includes Change-Id I6dbe197e58386393c858cee86657c59eb7c6f4c0
<tensorflow/tensorflow@e8e849c> and
Change-Id I81b05d7a1324e1f4de3ef63aeec581596f866f8a
<tensorflow/tensorflow@791dc47>

PiperOrigin-RevId: 354560540
  • Loading branch information
fergushenderson authored and tflite-support-robot committed Jan 29, 2021
1 parent ee673e1 commit 850aeb6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ http_archive(
],
)

# TF on 2020-12-16.
# TF on 2021-01-28.
http_archive(
name = "org_tensorflow",
sha256 = "bec76817fa2ddf15aa7ae103e490001ed2f885e481719ef6ac1d03f668eca90f",
strip_prefix = "tensorflow-a87bf6e6fe0097beefd1292e5c245345f8574b1b",
sha256 = "1936a2a119ac8558aaf877bc1cfcc5415171e9dbfb80a403f1185c2d9701445f",
strip_prefix = "tensorflow-791dc47439f01bc89431e8d3a5b0b63b1f8226d0",
urls = [
"https://github.com/tensorflow/tensorflow/archive/a87bf6e6fe0097beefd1292e5c245345f8574b1b.tar.gz",
"https://github.com/tensorflow/tensorflow/archive/791dc47439f01bc89431e8d3a5b0b63b1f8226d0.tar.gz",
],
patches = ["@//third_party:tensorflow_lite_ios_build.patch"],
patch_args = ["-p1"],
Expand Down
23 changes: 12 additions & 11 deletions third_party/tensorflow_lite_ios_build.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
diff --git a/tensorflow/lite/ios/BUILD.apple b/tensorflow/lite/ios/BUILD
similarity index 97%
similarity index 98%
rename from tensorflow/lite/ios/BUILD.apple
rename to tensorflow/lite/ios/BUILD
index cce0c4df..49eba35f 100644
index 2f6b40c5a8a..87a3d5cd2e4 100644
--- a/tensorflow/lite/ios/BUILD.apple
+++ b/tensorflow/lite/ios/BUILD
@@ -22,8 +22,7 @@ sh_binary(
@@ -29,8 +29,7 @@ sh_binary(
"hide_symbols_with_allowlist.sh",
],
visibility = [
Expand All @@ -16,25 +16,26 @@ index cce0c4df..49eba35f 100644
)

diff --git a/tensorflow/lite/ios/ios.bzl b/tensorflow/lite/ios/ios.bzl
index 63747eb8..07bcb49d 100644
index acb9cabff13..dcbc1a19a49 100644
--- a/tensorflow/lite/ios/ios.bzl
+++ b/tensorflow/lite/ios/ios.bzl
@@ -60,7 +60,7 @@ def tflite_ios_static_framework(
@@ -59,7 +59,7 @@ def tflite_ios_static_framework(
cmd = ("INPUT_FRAMEWORK=\"$(location " + framework_target + ")\" " +
"BUNDLE_NAME=\"" + bundle_name + "\" " +
"ALLOWLIST_FILE_PATH=\"$(location " + allowlist_symbols_file + ")\" " +
- "EXTRACT_SCRIPT_PATH=\"$(location //tensorflow/lite/ios:extract_object_files_main)\" " +
+ "EXTRACT_SCRIPT_PATH=\"$(location @org_tensorflow//tensorflow/lite/ios:extract_object_files_main)\" " +
"OUTPUT=\"$(OUTS)\" " +
- "\"$(location //tensorflow/lite/ios:hide_symbols_with_allowlist)\"")
+ "\"$(location @org_tensorflow//tensorflow/lite/ios:hide_symbols_with_allowlist)\"")
"\"$(location //tensorflow/lite/ios:hide_symbols_with_allowlist)\"")

native.genrule(
name = name,
@@ -68,7 +68,7 @@ def tflite_ios_static_framework(
@@ -69,8 +69,8 @@ def tflite_ios_static_framework(
outs = [name + ".zip"],
cmd = cmd,
tools = [
- "//tensorflow/lite/ios:extract_object_files_main",
- "//tensorflow/lite/ios:hide_symbols_with_allowlist",
+ "@org_tensorflow//tensorflow/lite/ios:extract_object_files_main",
+ "@org_tensorflow//tensorflow/lite/ios:hide_symbols_with_allowlist",
],
)


0 comments on commit 850aeb6

Please sign in to comment.