File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def patch_workspace(path: Path) -> None:
5252
5353
5454def write_tensorflow_android_absl_patch (path : Path ) -> None :
55+ path .parent .mkdir (parents = True , exist_ok = True )
5556 text = """diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
5657--- a/tensorflow/workspace.bzl
5758+++ b/tensorflow/workspace.bzl
@@ -67,7 +68,11 @@ def main() -> None:
6768 patch_build_sh (root / "tensorflow-core" / "tensorflow-core-api" / "build.sh" )
6869 patch_workspace (root / "tensorflow-core" / "tensorflow-core-api" / "WORKSPACE" )
6970 write_tensorflow_android_absl_patch (
70- root / "tensorflow-core" / "tensorflow-core-api" / "tensorflow-android-absl.patch"
71+ root
72+ / "tensorflow-core"
73+ / "tensorflow-core-api"
74+ / "external"
75+ / "tensorflow-android-absl.patch"
7176 )
7277 patch_preset (
7378 root
You can’t perform that action at this time.
0 commit comments