Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oss_scripts/pip_package/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ py_binary(
name = "tensorflow_build_info",
srcs = ["tensorflow_build_info.py"],
deps = [
"@absl_py//absl:app",
"//third_party/py/absl:app",
"@release_or_nightly//:tensorflow_pkg",
],
)
Expand Down
4 changes: 4 additions & 0 deletions tensorflow_text/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ py_library(
"python/ops/__init__.py",
"tools/__init__.py",
],
# TODO: b/459693180 - Opt in the library for lazy imports as this will yield a significant
# performance gain for some of its users. This is currently not possible as it breaks a number
# of tests in //third_party/tensorflow_text/.
lazy_imports = False,
deps = [
":bert_tokenizer",
":boise_offset_converter",
Expand Down
15 changes: 11 additions & 4 deletions tensorflow_text/core/kernels/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ load("@rules_cc//cc:cc_test.bzl", "cc_test")

# Placeholder: load proto_library
load("//tensorflow_text:tftext.bzl", "tf_cc_library", "tflite_cc_library")
load("//tools/build_defs/license:license.bzl", "license")
# [internal] load cc_proto_library.bzl

licenses(["notice"])

# Visibility rules
package(default_visibility = ["//visibility:public"])
package(
default_applicable_licenses = ["//tensorflow_text/core/kernels:license"],
default_visibility = ["//visibility:public"],
)

exports_files(["LICENSE"])

Expand Down Expand Up @@ -238,7 +242,6 @@ tf_cc_library(
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"//third_party/icu/data:icu_normalization_data",
"@icu//:common",
"@icu//:nfkc_cf", # Needed for NFKC_Casefold Unicode Normalization form.
"@com_googlesource_code_re2//:re2",
Expand Down Expand Up @@ -413,7 +416,7 @@ cc_test(
":fast_wordpiece_tokenizer_model_builder",
"@com_google_googletest//:gtest_main",
"@com_google_absl//absl/flags:flag",
"//third_party/icu:headers",
"@icu//:headers",
# tf:lib tensorflow dep,
],
)
Expand Down Expand Up @@ -681,7 +684,6 @@ tf_cc_library(
],
deps = [
":edit_changes_cc_proto",
"//third_party/icu/data:icu_normalization_data",
"@com_google_absl//absl/strings",
"@icu//:nfkc",
"@icu//:nfkc_cf",
Expand Down Expand Up @@ -1407,3 +1409,8 @@ cc_test(
"//tensorflow_text:wordpiece_tokenizer_cc",
],
)

license(
name = "license",
package_name = "kernels",
)
5 changes: 4 additions & 1 deletion tensorflow_text/core/kernels/sentencepiece/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ load("//tensorflow_text:tftext.bzl", "tf_cc_library", "tflite_cc_library")
licenses(["notice"])

# Visibility rules
package(default_visibility = ["//visibility:public"])
package(
default_applicable_licenses = ["//tensorflow_text/core/kernels:license"],
default_visibility = ["//visibility:public"],
)

filegroup(
name = "testdata",
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_text/core/pybinds/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code that exposes C++ libraries to Python via pybind11.

# Placeholder: load py_test
load("@org_tensorflow//tensorflow:tensorflow.bzl", "pybind_extension")
load("//third_party/tensorflow:tensorflow.google.bzl", "pybind_extension")

licenses(["notice"])

Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions third_party/sentencepiece/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cc_library(
"src/common.h",
],
deps = [
"@com_google_absl//absl/base",
"//third_party/absl/base",
],
)

Expand Down Expand Up @@ -88,11 +88,11 @@ cc_library(
":common",
":sentencepiece_cc_proto",
":sentencepiece_model_cc_proto",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@darts_clone",
"//third_party/absl/container:flat_hash_map",
"//third_party/absl/container:flat_hash_set",
"//third_party/absl/memory",
"//third_party/absl/strings",
"//third_party/absl/strings:str_format",
"//third_party/darts_clone",
],
)
Loading