diff --git a/tensorflow/c/eager/BUILD b/tensorflow/c/eager/BUILD index 8c2be2af3e0..0db85a17802 100644 --- a/tensorflow/c/eager/BUILD +++ b/tensorflow/c/eager/BUILD @@ -1,6 +1,8 @@ # Experimental extensions to the C API for eager execution of kernels. -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow:tensorflow.bzl", diff --git a/tensorflow/cc/saved_model/BUILD b/tensorflow/cc/saved_model/BUILD index 13bc88f7cd3..8626ed0087e 100644 --- a/tensorflow/cc/saved_model/BUILD +++ b/tensorflow/cc/saved_model/BUILD @@ -3,10 +3,9 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) load( diff --git a/tensorflow/cc/tools/BUILD b/tensorflow/cc/tools/BUILD index c173569a095..8e509aeeae8 100644 --- a/tensorflow/cc/tools/BUILD +++ b/tensorflow/cc/tools/BUILD @@ -3,10 +3,9 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) load( diff --git a/tensorflow/compiler/aot/tests/BUILD b/tensorflow/compiler/aot/tests/BUILD index 6362470abef..6daf18b51c4 100644 --- a/tensorflow/compiler/aot/tests/BUILD +++ b/tensorflow/compiler/aot/tests/BUILD @@ -1,7 +1,6 @@ -licenses(["notice"]) # Apache 2.0 - package( default_visibility = ["//visibility:private"], + licenses = ["notice"], # Apache 2.0 ) load("//tensorflow/compiler/aot:tfcompile.bzl", "tf_library") diff --git a/tensorflow/compiler/jit/kernels/BUILD b/tensorflow/compiler/jit/kernels/BUILD index 19b6c657796..0a65529cdb9 100644 --- a/tensorflow/compiler/jit/kernels/BUILD +++ b/tensorflow/compiler/jit/kernels/BUILD @@ -1,9 +1,8 @@ -licenses(["notice"]) # Apache 2.0 - package( default_visibility = [ "//tensorflow/compiler/tf2xla:internal", ], + licenses = ["notice"], # Apache 2.0 ) cc_library( diff --git a/tensorflow/compiler/tf2xla/ops/BUILD b/tensorflow/compiler/tf2xla/ops/BUILD index 4f1f3d7c326..17a62e83d5f 100644 --- a/tensorflow/compiler/tf2xla/ops/BUILD +++ b/tensorflow/compiler/tf2xla/ops/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow:tensorflow.bzl", "tf_custom_op_library", diff --git a/tensorflow/compiler/xrt/cc/BUILD b/tensorflow/compiler/xrt/cc/BUILD index 5c1e86b76b4..59a965945ad 100644 --- a/tensorflow/compiler/xrt/cc/BUILD +++ b/tensorflow/compiler/xrt/cc/BUILD @@ -1,7 +1,6 @@ -licenses(["notice"]) # Apache 2.0 - package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) load( diff --git a/tensorflow/core/common_runtime/data/BUILD b/tensorflow/core/common_runtime/data/BUILD index 124862dbb73..31d10ec1770 100644 --- a/tensorflow/core/common_runtime/data/BUILD +++ b/tensorflow/core/common_runtime/data/BUILD @@ -3,10 +3,9 @@ package( "//tensorflow:internal", "//tensorflow_models:__subpackages__", ], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_cc_test") load("//tensorflow/core:platform/default/build_config.bzl", "tf_protos_all") diff --git a/tensorflow/core/common_runtime/eager/BUILD b/tensorflow/core/common_runtime/eager/BUILD index 2d06cfa1890..8a33c7c2fbf 100644 --- a/tensorflow/core/common_runtime/eager/BUILD +++ b/tensorflow/core/common_runtime/eager/BUILD @@ -3,10 +3,9 @@ package( "//tensorflow:internal", "//tensorflow_models:__subpackages__", ], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow:tensorflow.bzl", "tf_cc_test", diff --git a/tensorflow/core/distributed_runtime/BUILD b/tensorflow/core/distributed_runtime/BUILD index 0d680b3a19c..e884ecd762f 100644 --- a/tensorflow/core/distributed_runtime/BUILD +++ b/tensorflow/core/distributed_runtime/BUILD @@ -3,7 +3,12 @@ # to be distributed and performed in parallel across multiple # processes. -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + "//tensorflow:internal", + ], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) @@ -29,10 +34,6 @@ load( "tf_cuda_tests_tags", ) -package(default_visibility = [ - "//tensorflow:internal", -]) - cc_library( name = "partial_run_mgr", srcs = ["partial_run_mgr.cc"], diff --git a/tensorflow/core/kernels/data/experimental/BUILD b/tensorflow/core/kernels/data/experimental/BUILD index 1238b64e0a0..2ba1143290c 100644 --- a/tensorflow/core/kernels/data/experimental/BUILD +++ b/tensorflow/core/kernels/data/experimental/BUILD @@ -1,9 +1,10 @@ # Description: # Contains experimental kernels for datasets and iterators. -package(default_visibility = ["//tensorflow:internal"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/core/kernels/fuzzing/BUILD b/tensorflow/core/kernels/fuzzing/BUILD index 3c3e9bfa2e0..28c1be5dbad 100644 --- a/tensorflow/core/kernels/fuzzing/BUILD +++ b/tensorflow/core/kernels/fuzzing/BUILD @@ -1,7 +1,6 @@ -licenses(["notice"]) # Apache 2.0 - package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) cc_library( diff --git a/tensorflow/core/kernels/neon/BUILD b/tensorflow/core/kernels/neon/BUILD index 6665152e3e3..610ab98bdf7 100644 --- a/tensorflow/core/kernels/neon/BUILD +++ b/tensorflow/core/kernels/neon/BUILD @@ -3,10 +3,9 @@ # package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow:tensorflow.bzl", "tf_kernel_library", diff --git a/tensorflow/core/kernels/tensor_forest/BUILD b/tensorflow/core/kernels/tensor_forest/BUILD index 0060410c957..d4c23ff3c54 100644 --- a/tensorflow/core/kernels/tensor_forest/BUILD +++ b/tensorflow/core/kernels/tensor_forest/BUILD @@ -3,10 +3,9 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_kernel_library") cc_library( diff --git a/tensorflow/core/lib/db/BUILD b/tensorflow/core/lib/db/BUILD index 7a64306c6e9..72ba50ab4f4 100644 --- a/tensorflow/core/lib/db/BUILD +++ b/tensorflow/core/lib/db/BUILD @@ -1,9 +1,10 @@ # Description: # Libraries for storing tensors in SQL databases. -package(default_visibility = ["//tensorflow:internal"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_copts") diff --git a/tensorflow/core/nccl/BUILD b/tensorflow/core/nccl/BUILD index a19e1af8884..7740131b7c0 100644 --- a/tensorflow/core/nccl/BUILD +++ b/tensorflow/core/nccl/BUILD @@ -2,9 +2,10 @@ # Wrap NVIDIA (https://github.com/NVIDIA/nccl) NCCL with tensorflow ops. # APIs are meant to change over time. -package(default_visibility = ["//tensorflow:__subpackages__"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:__subpackages__"], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/core/profiler/rpc/client/BUILD b/tensorflow/core/profiler/rpc/client/BUILD index f98faf46aec..2da1b60fb9f 100644 --- a/tensorflow/core/profiler/rpc/client/BUILD +++ b/tensorflow/core/profiler/rpc/client/BUILD @@ -1,4 +1,6 @@ -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "tf_cuda_library") load("//tensorflow:tensorflow.bzl", "tf_cc_test") diff --git a/tensorflow/core/util/proto/BUILD b/tensorflow/core/util/proto/BUILD index 890bd837025..6ca6582e20e 100644 --- a/tensorflow/core/util/proto/BUILD +++ b/tensorflow/core/util/proto/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_cc_test") cc_library( diff --git a/tensorflow/examples/multibox_detector/BUILD b/tensorflow/examples/multibox_detector/BUILD index 4f9908cd52d..f8c219316cb 100644 --- a/tensorflow/examples/multibox_detector/BUILD +++ b/tensorflow/examples/multibox_detector/BUILD @@ -3,10 +3,9 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) load("//tensorflow:tensorflow.bzl", "tf_cc_binary") diff --git a/tensorflow/examples/tutorials/word2vec/BUILD b/tensorflow/examples/tutorials/word2vec/BUILD index 5293f437dce..c2dd1acf8c2 100644 --- a/tensorflow/examples/tutorials/word2vec/BUILD +++ b/tensorflow/examples/tutorials/word2vec/BUILD @@ -1,9 +1,10 @@ # Description: # TensorFlow model for word2vec -package(default_visibility = ["//tensorflow:internal"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/lite/core/api/BUILD b/tensorflow/lite/core/api/BUILD index 17eeed6a687..960a7342d0f 100644 --- a/tensorflow/lite/core/api/BUILD +++ b/tensorflow/lite/core/api/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow/lite:build_def.bzl", "tflite_copts") cc_library( diff --git a/tensorflow/lite/delegates/gpu/common/BUILD b/tensorflow/lite/delegates/gpu/common/BUILD index 7de77426c74..38c3fec351f 100644 --- a/tensorflow/lite/delegates/gpu/common/BUILD +++ b/tensorflow/lite/delegates/gpu/common/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) cc_library( name = "convert", diff --git a/tensorflow/lite/delegates/gpu/common/transformations/BUILD b/tensorflow/lite/delegates/gpu/common/transformations/BUILD index 8fa03687adc..d0411473fae 100644 --- a/tensorflow/lite/delegates/gpu/common/transformations/BUILD +++ b/tensorflow/lite/delegates/gpu/common/transformations/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) cc_library( name = "add_bias", diff --git a/tensorflow/lite/delegates/gpu/gl/compiler/BUILD b/tensorflow/lite/delegates/gpu/gl/compiler/BUILD index da200306a76..da278f0bcd7 100644 --- a/tensorflow/lite/delegates/gpu/gl/compiler/BUILD +++ b/tensorflow/lite/delegates/gpu/gl/compiler/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") diff --git a/tensorflow/lite/delegates/gpu/gl/workgroups/BUILD b/tensorflow/lite/delegates/gpu/gl/workgroups/BUILD index 101852058a7..28a172b35de 100644 --- a/tensorflow/lite/delegates/gpu/gl/workgroups/BUILD +++ b/tensorflow/lite/delegates/gpu/gl/workgroups/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) cc_library( name = "calculator", diff --git a/tensorflow/lite/delegates/nnapi/BUILD b/tensorflow/lite/delegates/nnapi/BUILD index 46120452566..bd15bbc84d9 100644 --- a/tensorflow/lite/delegates/nnapi/BUILD +++ b/tensorflow/lite/delegates/nnapi/BUILD @@ -1,11 +1,12 @@ -package(default_visibility = [ - "//visibility:public", -]) +package( + default_visibility = [ + "//visibility:public", + ], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") -licenses(["notice"]) # Apache 2.0 - cc_library( name = "nnapi_delegate", srcs = select({ diff --git a/tensorflow/lite/examples/minimal/BUILD b/tensorflow/lite/examples/minimal/BUILD index 498dbb9693e..907e02f1bc5 100644 --- a/tensorflow/lite/examples/minimal/BUILD +++ b/tensorflow/lite/examples/minimal/BUILD @@ -1,9 +1,10 @@ # Description: # TensorFlow Lite minimal example. -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite:build_def.bzl", "tflite_linkopts") diff --git a/tensorflow/lite/experimental/ios/BUILD.apple b/tensorflow/lite/experimental/ios/BUILD.apple index 41d308b9796..f3d7d54e2f6 100644 --- a/tensorflow/lite/experimental/ios/BUILD.apple +++ b/tensorflow/lite/experimental/ios/BUILD.apple @@ -1,8 +1,9 @@ # TensorFlow Lite for iOS -package(default_visibility = ["//visibility:private"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:private"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite/experimental/ios:ios.bzl", "TFL_IOS_BUILD_VERSION", "TFL_MINIMUM_OS_VERSION") load("@build_bazel_rules_apple//apple:ios.bzl", "ios_static_framework") diff --git a/tensorflow/lite/experimental/kernels/BUILD b/tensorflow/lite/experimental/kernels/BUILD index bf4a007fb8c..bd25e36c786 100644 --- a/tensorflow/lite/experimental/kernels/BUILD +++ b/tensorflow/lite/experimental/kernels/BUILD @@ -1,8 +1,9 @@ -package(default_visibility = [ - "//visibility:public", -]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + "//visibility:public", + ], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite:build_def.bzl", "tflite_copts") diff --git a/tensorflow/lite/experimental/micro/examples/micro_speech/BUILD b/tensorflow/lite/experimental/micro/examples/micro_speech/BUILD index 218b5de86a7..a5d23033b3d 100644 --- a/tensorflow/lite/experimental/micro/examples/micro_speech/BUILD +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/BUILD @@ -1,9 +1,10 @@ # Description: # TensorFlow Lite microcontroller example. -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow/lite/experimental/micro/testing:micro_test.bzl", diff --git a/tensorflow/lite/experimental/micro/kernels/BUILD b/tensorflow/lite/experimental/micro/kernels/BUILD index 1ff15e9abf0..d0b550c6f71 100644 --- a/tensorflow/lite/experimental/micro/kernels/BUILD +++ b/tensorflow/lite/experimental/micro/kernels/BUILD @@ -1,8 +1,9 @@ -package(default_visibility = [ - "//visibility:public", -]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + "//visibility:public", + ], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite:build_def.bzl", "tflite_copts") load( diff --git a/tensorflow/lite/experimental/swift/BUILD.apple b/tensorflow/lite/experimental/swift/BUILD.apple index f57df7cc34e..7e0bf94dfca 100644 --- a/tensorflow/lite/experimental/swift/BUILD.apple +++ b/tensorflow/lite/experimental/swift/BUILD.apple @@ -1,8 +1,9 @@ # TensorFlow Lite for Swift -package(default_visibility = ["//visibility:private"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:private"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite/experimental/ios:ios.bzl", "TFL_DEFAULT_TAGS", "TFL_DISABLED_SANITIZER_TAGS", "TFL_MINIMUM_OS_VERSION") load("@build_bazel_rules_apple//apple:ios.bzl", "ios_application", "ios_unit_test") diff --git a/tensorflow/lite/java/ovic/demo/app/BUILD b/tensorflow/lite/java/ovic/demo/app/BUILD index b3548deaf53..1295c61e29a 100644 --- a/tensorflow/lite/java/ovic/demo/app/BUILD +++ b/tensorflow/lite/java/ovic/demo/app/BUILD @@ -1,7 +1,10 @@ +# Sample app for OVIC benchmarking. + load("@build_bazel_rules_android//android:rules.bzl", "android_binary") -# Sample app for OVIC benchmarking. -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) android_binary( name = "ovic_benchmarker_binary", diff --git a/tensorflow/lite/java/ovic/src/testdata/BUILD b/tensorflow/lite/java/ovic/src/testdata/BUILD index b55d6230dfb..07cb48e6b16 100644 --- a/tensorflow/lite/java/ovic/src/testdata/BUILD +++ b/tensorflow/lite/java/ovic/src/testdata/BUILD @@ -1,6 +1,8 @@ # Testdata for OVIC benchmarker demo App and tests. -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) filegroup( name = "ovic_testdata", diff --git a/tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD b/tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD index 88641c86ed6..6bec3fca099 100644 --- a/tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD +++ b/tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD @@ -3,9 +3,10 @@ load("@build_bazel_rules_android//android:rules.bzl", "android_library") -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) android_library( name = "testhelper", diff --git a/tensorflow/lite/models/smartreply/demo/app/src/main/BUILD b/tensorflow/lite/models/smartreply/demo/app/src/main/BUILD index 73326e994bc..6501a994d8d 100644 --- a/tensorflow/lite/models/smartreply/demo/app/src/main/BUILD +++ b/tensorflow/lite/models/smartreply/demo/app/src/main/BUILD @@ -1,8 +1,9 @@ load("@build_bazel_rules_android//android:rules.bzl", "android_binary") -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow/lite:build_def.bzl", diff --git a/tensorflow/lite/nnapi/BUILD b/tensorflow/lite/nnapi/BUILD index 8b85a5f1182..7ea58c583e1 100644 --- a/tensorflow/lite/nnapi/BUILD +++ b/tensorflow/lite/nnapi/BUILD @@ -1,8 +1,9 @@ -licenses(["notice"]) # Apache 2.0 - -package(default_visibility = [ - "//visibility:public", -]) +package( + default_visibility = [ + "//visibility:public", + ], + licenses = ["notice"], # Apache 2.0 +) cc_library( name = "nnapi_lib", diff --git a/tensorflow/lite/python/interpreter_wrapper/BUILD b/tensorflow/lite/python/interpreter_wrapper/BUILD index 6ec7ce497a5..0c440809d78 100644 --- a/tensorflow/lite/python/interpreter_wrapper/BUILD +++ b/tensorflow/lite/python/interpreter_wrapper/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_py_wrap_cc") cc_library( diff --git a/tensorflow/lite/python/optimize/BUILD b/tensorflow/lite/python/optimize/BUILD index 61968fb6d8b..07e597813f7 100644 --- a/tensorflow/lite/python/optimize/BUILD +++ b/tensorflow/lite/python/optimize/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_py_wrap_cc") cc_library( diff --git a/tensorflow/lite/schema/builtin_ops_header/BUILD b/tensorflow/lite/schema/builtin_ops_header/BUILD index 52cbd052d6a..85576cd06eb 100644 --- a/tensorflow/lite/schema/builtin_ops_header/BUILD +++ b/tensorflow/lite/schema/builtin_ops_header/BUILD @@ -1,8 +1,9 @@ -package(default_visibility = [ - "//visibility:public", -]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + "//visibility:public", + ], + licenses = ["notice"], # Apache 2.0 +) cc_library( name = "generator", diff --git a/tensorflow/lite/toco/graph_transformations/tests/BUILD b/tensorflow/lite/toco/graph_transformations/tests/BUILD index ba269931bc4..9688c9adb39 100644 --- a/tensorflow/lite/toco/graph_transformations/tests/BUILD +++ b/tensorflow/lite/toco/graph_transformations/tests/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow:tensorflow.bzl", diff --git a/tensorflow/lite/toco/tensorflow_graph_matching/BUILD b/tensorflow/lite/toco/tensorflow_graph_matching/BUILD index ae361bf212d..2aa67574ad2 100644 --- a/tensorflow/lite/toco/tensorflow_graph_matching/BUILD +++ b/tensorflow/lite/toco/tensorflow_graph_matching/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow:tensorflow.bzl", diff --git a/tensorflow/lite/tools/evaluation/BUILD b/tensorflow/lite/tools/evaluation/BUILD index 0d2f793cbec..b5d7cdeb0ba 100644 --- a/tensorflow/lite/tools/evaluation/BUILD +++ b/tensorflow/lite/tools/evaluation/BUILD @@ -13,9 +13,10 @@ # limitations under the License. # ============================================================================== -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite:build_def.bzl", "tflite_copts", "tflite_linkopts") diff --git a/tensorflow/lite/tools/optimize/calibration/BUILD b/tensorflow/lite/tools/optimize/calibration/BUILD index efd1261f228..8222631a935 100644 --- a/tensorflow/lite/tools/optimize/calibration/BUILD +++ b/tensorflow/lite/tools/optimize/calibration/BUILD @@ -1,11 +1,12 @@ load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") load("//tensorflow:tensorflow.bzl", "tf_cc_test") -package(default_visibility = [ - "//visibility:public", -]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + "//visibility:public", + ], + licenses = ["notice"], # Apache 2.0 +) cc_library( name = "calibrator_lib", diff --git a/tensorflow/lite/tutorials/BUILD b/tensorflow/lite/tutorials/BUILD index 3b44395212a..657fbcd19ef 100644 --- a/tensorflow/lite/tutorials/BUILD +++ b/tensorflow/lite/tutorials/BUILD @@ -2,10 +2,9 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) py_binary( diff --git a/tensorflow/python/compiler/BUILD b/tensorflow/python/compiler/BUILD index ccb95139f90..2079e0fb7ad 100644 --- a/tensorflow/python/compiler/BUILD +++ b/tensorflow/python/compiler/BUILD @@ -1,9 +1,10 @@ # Description: # Python APIs for various Tensorflow backends. -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "if_not_windows") diff --git a/tensorflow/python/data/BUILD b/tensorflow/python/data/BUILD index e32eeecbb86..d4f4f8055d7 100644 --- a/tensorflow/python/data/BUILD +++ b/tensorflow/python/data/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//tensorflow:internal"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/python/data/experimental/kernel_tests/BUILD b/tensorflow/python/data/experimental/kernel_tests/BUILD index 1652bd1ccff..19c629e406c 100644 --- a/tensorflow/python/data/experimental/kernel_tests/BUILD +++ b/tensorflow/python/data/experimental/kernel_tests/BUILD @@ -1,9 +1,10 @@ load("//tensorflow:tensorflow.bzl", "py_test") load("//tensorflow:tensorflow.bzl", "cuda_py_test") -package(default_visibility = ["//tensorflow:internal"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/python/debug/BUILD b/tensorflow/python/debug/BUILD index d33e3b8d0e4..caf889cefdf 100644 --- a/tensorflow/python/debug/BUILD +++ b/tensorflow/python/debug/BUILD @@ -10,10 +10,9 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) load("//tensorflow:tensorflow.bzl", "cuda_py_test") diff --git a/tensorflow/python/distribute/cluster_resolver/BUILD b/tensorflow/python/distribute/cluster_resolver/BUILD index 360a2993cd9..c4341ca8396 100644 --- a/tensorflow/python/distribute/cluster_resolver/BUILD +++ b/tensorflow/python/distribute/cluster_resolver/BUILD @@ -6,10 +6,9 @@ package( default_visibility = [ "//tensorflow:__subpackages__", ], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - py_library( name = "cluster_resolver_lib", srcs = [ diff --git a/tensorflow/python/kernel_tests/boosted_trees/BUILD b/tensorflow/python/kernel_tests/boosted_trees/BUILD index d23795eb3ad..e75953355cf 100644 --- a/tensorflow/python/kernel_tests/boosted_trees/BUILD +++ b/tensorflow/python/kernel_tests/boosted_trees/BUILD @@ -3,10 +3,9 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_py_test") filegroup( diff --git a/tensorflow/python/kernel_tests/signal/BUILD b/tensorflow/python/kernel_tests/signal/BUILD index 4caecc85ca5..65d06a17968 100644 --- a/tensorflow/python/kernel_tests/signal/BUILD +++ b/tensorflow/python/kernel_tests/signal/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//tensorflow:internal"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/python/ops/distributions/BUILD b/tensorflow/python/ops/distributions/BUILD index 59ba9aee59e..3aec4c18202 100644 --- a/tensorflow/python/ops/distributions/BUILD +++ b/tensorflow/python/ops/distributions/BUILD @@ -1,11 +1,10 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) load("//tensorflow:tensorflow.bzl", "py_test") -licenses(["notice"]) # Apache 2.0 - py_library( name = "distributions", srcs = glob( diff --git a/tensorflow/python/ops/linalg/BUILD b/tensorflow/python/ops/linalg/BUILD index 5df2d6b8381..374ef7d99ba 100644 --- a/tensorflow/python/ops/linalg/BUILD +++ b/tensorflow/python/ops/linalg/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - py_library( name = "linalg", srcs = glob(["*.py"]), diff --git a/tensorflow/python/profiler/internal/BUILD b/tensorflow/python/profiler/internal/BUILD index 7f24d7ffe5b..c4212dbe4ea 100644 --- a/tensorflow/python/profiler/internal/BUILD +++ b/tensorflow/python/profiler/internal/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//tensorflow/python/profiler:__subpackages__"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow/python/profiler:__subpackages__"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "cuda_py_test") load("//tensorflow:tensorflow.bzl", "py_test") diff --git a/tensorflow/python/saved_model/model_utils/BUILD b/tensorflow/python/saved_model/model_utils/BUILD index 7c2a5d04b24..58d7456ed63 100644 --- a/tensorflow/python/saved_model/model_utils/BUILD +++ b/tensorflow/python/saved_model/model_utils/BUILD @@ -17,9 +17,10 @@ # Keras saving and loading libraries. load("//tensorflow:tensorflow.bzl", "py_test") -package(default_visibility = ["//tensorflow:__subpackages__"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:__subpackages__"], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/python/tools/api/generator/BUILD b/tensorflow/python/tools/api/generator/BUILD index 59f20d52a0c..7cbcac28a0d 100644 --- a/tensorflow/python/tools/api/generator/BUILD +++ b/tensorflow/python/tools/api/generator/BUILD @@ -1,7 +1,9 @@ # Description: # Scripts used to generate TensorFlow Python API. -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "py_test") load("//tensorflow/python/tools/api/generator:api_init_files.bzl", "TENSORFLOW_API_INIT_FILES") diff --git a/tensorflow/python/training/saving/BUILD b/tensorflow/python/training/saving/BUILD index 5577a2b4ae8..469a2d82ca7 100644 --- a/tensorflow/python/training/saving/BUILD +++ b/tensorflow/python/training/saving/BUILD @@ -5,10 +5,9 @@ package( default_visibility = [ "//tensorflow:internal", ], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) load("//tensorflow:tensorflow.bzl", "cuda_py_test") diff --git a/tensorflow/stream_executor/gpu/BUILD b/tensorflow/stream_executor/gpu/BUILD index 1bbee8f52a7..1981490f7ea 100644 --- a/tensorflow/stream_executor/gpu/BUILD +++ b/tensorflow/stream_executor/gpu/BUILD @@ -1,8 +1,6 @@ # Description: # GPU-platform specific StreamExecutor support code. -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow/stream_executor:build_defs.bzl", "if_gpu_is_configured", @@ -18,6 +16,7 @@ package( "//tensorflow/compiler/xla/service/gpu:__subpackages__", "//tensorflow/stream_executor:__subpackages__", ], + licenses = ["notice"], # Apache 2.0 ) # Filegroup used to collect source files for the dependency check. diff --git a/tensorflow/stream_executor/rocm/BUILD b/tensorflow/stream_executor/rocm/BUILD index c64bf4d9ef6..71139c01e23 100644 --- a/tensorflow/stream_executor/rocm/BUILD +++ b/tensorflow/stream_executor/rocm/BUILD @@ -1,8 +1,6 @@ # Description: # ROCm-platform specific StreamExecutor support code. -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_cc_test") load( "//tensorflow/stream_executor:build_defs.bzl", @@ -12,15 +10,16 @@ load("//tensorflow:tensorflow.bzl", "tf_copts") load("@local_config_rocm//rocm:build_defs.bzl", "if_rocm_is_configured") load("//tensorflow/core:platform/default/build_config_root.bzl", "if_static") +package( + default_visibility = [":friends"], + licenses = ["notice"], # Apache 2.0 +) + package_group( name = "friends", packages = stream_executor_friends(), ) -package( - default_visibility = [":friends"], -) - # Filegroup used to collect source files for the dependency check. filegroup( name = "c_srcs", diff --git a/tensorflow/tools/api/tests/BUILD b/tensorflow/tools/api/tests/BUILD index 7f7748c6ab6..efb73692bde 100644 --- a/tensorflow/tools/api/tests/BUILD +++ b/tensorflow/tools/api/tests/BUILD @@ -7,10 +7,9 @@ load( package( default_visibility = ["//tensorflow/tools/api:__subpackages__"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files([ "README.txt", "API_UPDATE_WARNING.txt", diff --git a/tensorflow/tools/git/BUILD b/tensorflow/tools/git/BUILD index 8dc4d07bd75..fb6a07133e7 100644 --- a/tensorflow/tools/git/BUILD +++ b/tensorflow/tools/git/BUILD @@ -3,9 +3,10 @@ # Also contains information about git repository deposited by configure # in gen/... -package(default_visibility = ["//tensorflow:internal"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) py_binary( name = "gen_git_source", diff --git a/tensorflow/tools/optimization/BUILD b/tensorflow/tools/optimization/BUILD index aa6c850b0b3..d4e9857e155 100644 --- a/tensorflow/tools/optimization/BUILD +++ b/tensorflow/tools/optimization/BUILD @@ -1,9 +1,10 @@ # Description: # Utilities that perform useful transformations on graphs -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow:tensorflow.bzl", diff --git a/tensorflow/tools/proto_text/BUILD b/tensorflow/tools/proto_text/BUILD index b69dab23718..d41ece78692 100644 --- a/tensorflow/tools/proto_text/BUILD +++ b/tensorflow/tools/proto_text/BUILD @@ -8,9 +8,10 @@ # Note that proto3 well-known types (e.g. Any) are not handled in a special way # by the generated code. -package(default_visibility = ["//visibility:private"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:private"], + licenses = ["notice"], # Apache 2.0 +) exports_files([ "LICENSE", diff --git a/third_party/hwloc/BUILD b/third_party/hwloc/BUILD index 2469c95668a..ce6d3712564 100644 --- a/third_party/hwloc/BUILD +++ b/third_party/hwloc/BUILD @@ -1,6 +1,6 @@ # BUILD file to make this directory a package. -licenses(["notice"]) +package(licenses = ["notice"]) exports_files( ["static-components.h"],