Skip to content

Commit dd746d7

Browse files
committed
build: dedupe portable function ops
1 parent 59d74a5 commit dd746d7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

scripts/patch_tfjava.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,19 @@ def patch_workspace(path: Path) -> None:
14501450
alwayslink = 1,
14511451
"""
14521452

1453+
PORTABLE_KERNELS_FUNCTION_OPS_DEDUP_PATCH = """--- a/tensorflow/core/kernels/BUILD
1454+
+++ b/tensorflow/core/kernels/BUILD
1455+
@@ -6397,8 +6397,6 @@
1456+
"example_parsing_ops.cc",
1457+
"fill_functor.cc",
1458+
"fill_functor.h",
1459+
- "function_ops.cc",
1460+
- "function_ops.h",
1461+
"gather_functor.h",
1462+
"gather_functor_batched.h",
1463+
"gather_nd_op.cc",
1464+
"""
1465+
14531466

14541467
HUNK_HEADER_RE = re.compile(
14551468
r"^@@ -(?P<old_start>\d+)(?:,(?P<old_count>\d+))? "
@@ -1538,6 +1551,7 @@ def write_tensorflow_android_absl_patch(path: Path) -> None:
15381551
text += TENSORFLOW_FRAMEWORK_ANDROID_PATCH
15391552
text += normalize_unified_diff_hunk_counts(ANDROID_PORTABLE_LIB_SHIM_PATCH)
15401553
text += PORTABLE_KERNELS_QUEUE_DEPS_PATCH
1554+
text += PORTABLE_KERNELS_FUNCTION_OPS_DEDUP_PATCH
15411555
if not text.endswith("\n"):
15421556
text += "\n"
15431557
path.write_text(text, encoding="utf-8")

0 commit comments

Comments
 (0)