diff --git a/tensorflow/compiler/jit/BUILD b/tensorflow/compiler/jit/BUILD index af99a678bc2..7d5e889bf7d 100644 --- a/tensorflow/compiler/jit/BUILD +++ b/tensorflow/compiler/jit/BUILD @@ -1,4 +1,12 @@ -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + ":internal", + # BEGIN-GOOGLE-INTERNAL + "//learning/brain/contrib/tpu_modeling/exp/tpu_inference_converter:__pkg__", + # END-GOOGLE-INTERNAL + ], + licenses = ["notice"], # Apache 2.0 +) package_group( name = "internal", @@ -14,15 +22,6 @@ package_group( ], ) -package( - default_visibility = [ - ":internal", - # BEGIN-GOOGLE-INTERNAL - "//learning/brain/contrib/tpu_modeling/exp/tpu_inference_converter:__pkg__", - # END-GOOGLE-INTERNAL - ], -) - load("//tensorflow:tensorflow.bzl", "tf_cc_test", "cc_header_only_library") load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda") load("//tensorflow:tensorflow.bzl", "tf_custom_op_py_library") diff --git a/tensorflow/compiler/jit/graphcycles/BUILD b/tensorflow/compiler/jit/graphcycles/BUILD index f9be7c45743..69c67c87615 100644 --- a/tensorflow/compiler/jit/graphcycles/BUILD +++ b/tensorflow/compiler/jit/graphcycles/BUILD @@ -1,9 +1,8 @@ -licenses(["notice"]) # Apache 2.0 - package( default_visibility = [ "//tensorflow/compiler/tf2xla:internal", ], + licenses = ["notice"], # Apache 2.0 ) load("//tensorflow:tensorflow.bzl", "tf_cc_test") diff --git a/tensorflow/compiler/plugin/BUILD b/tensorflow/compiler/plugin/BUILD index 238fd15166c..c2ba5cb3ecd 100644 --- a/tensorflow/compiler/plugin/BUILD +++ b/tensorflow/compiler/plugin/BUILD @@ -28,10 +28,9 @@ ** Please don't remove this file - it is supporting some 3rd party plugins ** """ -licenses(["notice"]) - package( default_visibility = ["//visibility:public"], + licenses = ["notice"], ) cc_library( diff --git a/tensorflow/compiler/tf2xla/kernels/BUILD b/tensorflow/compiler/tf2xla/kernels/BUILD index c5fa4502628..06376f7174e 100644 --- a/tensorflow/compiler/tf2xla/kernels/BUILD +++ b/tensorflow/compiler/tf2xla/kernels/BUILD @@ -1,9 +1,8 @@ load("//tensorflow:tensorflow.bzl", "tf_copts", "tf_kernel_library") -licenses(["notice"]) # Apache 2.0 - package( default_visibility = ["//tensorflow/compiler/tf2xla:internal"], + licenses = ["notice"], # Apache 2.0 ) tf_kernel_library( diff --git a/tensorflow/compiler/xrt/tests/BUILD b/tensorflow/compiler/xrt/tests/BUILD index bd79bbb3946..f8341e1ee0f 100644 --- a/tensorflow/compiler/xrt/tests/BUILD +++ b/tensorflow/compiler/xrt/tests/BUILD @@ -1,10 +1,9 @@ -licenses(["notice"]) # Apache 2.0 - package( default_visibility = [ "//learning/brain:__subpackages__", "//tensorflow/compiler:__subpackages__", ], + licenses = ["notice"], # Apache 2.0 ) load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_cuda_cc_test") diff --git a/tensorflow/core/distributed_runtime/rpc/eager/BUILD b/tensorflow/core/distributed_runtime/rpc/eager/BUILD index d09a85c6a52..573903f708e 100644 --- a/tensorflow/core/distributed_runtime/rpc/eager/BUILD +++ b/tensorflow/core/distributed_runtime/rpc/eager/BUILD @@ -1,11 +1,12 @@ -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + "//tensorflow:internal", + ], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) -package(default_visibility = [ - "//tensorflow:internal", -]) - cc_library( name = "grpc_eager_service", srcs = ["grpc_eager_service.cc"], diff --git a/tensorflow/core/kernels/boosted_trees/BUILD b/tensorflow/core/kernels/boosted_trees/BUILD index 89b6953e0b1..5f6ccac1b19 100644 --- a/tensorflow/core/kernels/boosted_trees/BUILD +++ b/tensorflow/core/kernels/boosted_trees/BUILD @@ -6,10 +6,9 @@ package( "//tensorflow:__subpackages__", "//tensorflow:internal", ], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow:tensorflow.bzl", "tf_cc_test", diff --git a/tensorflow/core/kernels/data/experimental/sql/BUILD b/tensorflow/core/kernels/data/experimental/sql/BUILD index 464410124e9..923cebf9f03 100644 --- a/tensorflow/core/kernels/data/experimental/sql/BUILD +++ b/tensorflow/core/kernels/data/experimental/sql/BUILD @@ -3,10 +3,9 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - cc_library( name = "sql", srcs = [ diff --git a/tensorflow/core/platform/hadoop/BUILD b/tensorflow/core/platform/hadoop/BUILD index e04835f4f3e..3f94facc3cd 100644 --- a/tensorflow/core/platform/hadoop/BUILD +++ b/tensorflow/core/platform/hadoop/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_cc_test", diff --git a/tensorflow/core/summary/BUILD b/tensorflow/core/summary/BUILD index a89175cdb1d..8a6401d6f99 100644 --- a/tensorflow/core/summary/BUILD +++ b/tensorflow/core/summary/BUILD @@ -1,9 +1,10 @@ # Description: # C++ implementation code for the summary writing APIs. -package(default_visibility = ["//tensorflow:internal"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow:tensorflow.bzl", diff --git a/tensorflow/examples/android/BUILD b/tensorflow/examples/android/BUILD index 5f99f0a9c90..7585c2cad55 100644 --- a/tensorflow/examples/android/BUILD +++ b/tensorflow/examples/android/BUILD @@ -3,9 +3,10 @@ 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:tensorflow.bzl", diff --git a/tensorflow/examples/how_tos/reading_data/BUILD b/tensorflow/examples/how_tos/reading_data/BUILD index b8a6ee1026a..45f192d0b7d 100644 --- a/tensorflow/examples/how_tos/reading_data/BUILD +++ b/tensorflow/examples/how_tos/reading_data/BUILD @@ -1,9 +1,10 @@ # Description: # Example MNIST TensorFlow models for demonstrating data reading. -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/examples/wav_to_spectrogram/BUILD b/tensorflow/examples/wav_to_spectrogram/BUILD index cc8835728d5..2303cfb1b39 100644 --- a/tensorflow/examples/wav_to_spectrogram/BUILD +++ b/tensorflow/examples/wav_to_spectrogram/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/java/src/main/java/org/tensorflow/examples/BUILD b/tensorflow/java/src/main/java/org/tensorflow/examples/BUILD index a7fc8588359..10eb713d43f 100644 --- a/tensorflow/java/src/main/java/org/tensorflow/examples/BUILD +++ b/tensorflow/java/src/main/java/org/tensorflow/examples/BUILD @@ -1,9 +1,10 @@ # Description: # TensorFlow Java examples. -package(default_visibility = ["//visibility:private"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:private"], + licenses = ["notice"], # Apache 2.0 +) java_binary( name = "label_image", diff --git a/tensorflow/js/BUILD b/tensorflow/js/BUILD index ad0dc44f549..16a2b4af8f0 100644 --- a/tensorflow/js/BUILD +++ b/tensorflow/js/BUILD @@ -5,9 +5,10 @@ visibility = [ "//tensorflow:internal", ] -package(default_visibility = visibility) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = visibility, + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow:tensorflow.bzl", diff --git a/tensorflow/lite/delegates/gpu/BUILD b/tensorflow/lite/delegates/gpu/BUILD index 33f5a86c422..0860166278b 100644 --- a/tensorflow/lite/delegates/gpu/BUILD +++ b/tensorflow/lite/delegates/gpu/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 +) # Primary purpose of this config is to replace ::util::Status with our custom # light implementation ::tflite::gpu::StatusLite to reduce binary size. Besides diff --git a/tensorflow/lite/delegates/gpu/gl/kernels/BUILD b/tensorflow/lite/delegates/gpu/gl/kernels/BUILD index 21ebf6cc744..d5e2be67b88 100644 --- a/tensorflow/lite/delegates/gpu/gl/kernels/BUILD +++ b/tensorflow/lite/delegates/gpu/gl/kernels/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/metal/BUILD b/tensorflow/lite/delegates/gpu/metal/BUILD index 855107bacdb..5c16a5fe227 100644 --- a/tensorflow/lite/delegates/gpu/metal/BUILD +++ b/tensorflow/lite/delegates/gpu/metal/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 +) DEFAULT_COPTS = [ "-std=c++11", diff --git a/tensorflow/lite/delegates/nnapi/java/src/main/java/org/tensorflow/lite/nnapi/BUILD b/tensorflow/lite/delegates/nnapi/java/src/main/java/org/tensorflow/lite/nnapi/BUILD index 17a238980d0..c64e0971475 100644 --- a/tensorflow/lite/delegates/nnapi/java/src/main/java/org/tensorflow/lite/nnapi/BUILD +++ b/tensorflow/lite/delegates/nnapi/java/src/main/java/org/tensorflow/lite/nnapi/BUILD @@ -1,4 +1,6 @@ -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) filegroup( name = "nnapi_delegate_src", diff --git a/tensorflow/lite/examples/label_image/BUILD b/tensorflow/lite/examples/label_image/BUILD index 88e5fd2c677..406c7526ce5 100644 --- a/tensorflow/lite/examples/label_image/BUILD +++ b/tensorflow/lite/examples/label_image/BUILD @@ -1,9 +1,10 @@ # Description: # TensorFlow Lite Example Label Image. -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/examples/python/BUILD b/tensorflow/lite/examples/python/BUILD index 1ea487ac9fc..ed39c5fb421 100644 --- a/tensorflow/lite/examples/python/BUILD +++ b/tensorflow/lite/examples/python/BUILD @@ -1,6 +1,7 @@ -licenses(["notice"]) # Apache 2.0 - -package(default_visibility = ["//tensorflow:internal"]) +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) py_binary( name = "label_image", diff --git a/tensorflow/lite/experimental/examples/lstm/BUILD b/tensorflow/lite/experimental/examples/lstm/BUILD index 42e132683b2..64aa5c5413a 100644 --- a/tensorflow/lite/experimental/examples/lstm/BUILD +++ b/tensorflow/lite/experimental/examples/lstm/BUILD @@ -1,6 +1,7 @@ -licenses(["notice"]) # Apache 2.0 - -package(default_visibility = ["//tensorflow:internal"]) +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "py_test") diff --git a/tensorflow/lite/experimental/micro/BUILD b/tensorflow/lite/experimental/micro/BUILD index b16b8b49f8a..c5fc95f2ff8 100644 --- a/tensorflow/lite/experimental/micro/BUILD +++ b/tensorflow/lite/experimental/micro/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow/lite/experimental/micro/testing:micro_test.bzl", "tflite_micro_cc_test", diff --git a/tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/BUILD b/tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/BUILD index 1e684e1efd0..8ddb182af29 100644 --- a/tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/BUILD +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/BUILD @@ -2,10 +2,9 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow/lite/experimental/micro/testing:micro_test.bzl", "tflite_micro_cc_test", diff --git a/tensorflow/lite/experimental/writer/BUILD b/tensorflow/lite/experimental/writer/BUILD index 9ba74d0e911..34d5c68c490 100644 --- a/tensorflow/lite/experimental/writer/BUILD +++ b/tensorflow/lite/experimental/writer/BUILD @@ -3,10 +3,9 @@ package( "//visibility:public", ], features = ["-parse_headers"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - cc_binary( name = "option_writer_generator", srcs = ["option_writer_generator.cc"], diff --git a/tensorflow/lite/java/demo/app/src/main/BUILD b/tensorflow/lite/java/demo/app/src/main/BUILD index 8adf562d0f1..e1574d4c83d 100644 --- a/tensorflow/lite/java/demo/app/src/main/BUILD +++ b/tensorflow/lite/java/demo/app/src/main/BUILD @@ -1,8 +1,9 @@ load("@build_bazel_rules_android//android:rules.bzl", "android_binary") -package(default_visibility = ["//visibility:private"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:private"], + licenses = ["notice"], # Apache 2.0 +) android_binary( name = "TfLiteCameraDemo", diff --git a/tensorflow/lite/java/src/test/native/BUILD b/tensorflow/lite/java/src/test/native/BUILD index 994f2389b46..05fc5d6cf43 100644 --- a/tensorflow/lite/java/src/test/native/BUILD +++ b/tensorflow/lite/java/src/test/native/BUILD @@ -1,9 +1,10 @@ # Description: # Java Native Interface (JNI) library for testing the TensorFlow Lite Java API. -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_jni_binary") diff --git a/tensorflow/lite/kernels/BUILD b/tensorflow/lite/kernels/BUILD index b9d0cd1d0a5..2160584c513 100644 --- a/tensorflow/lite/kernels/BUILD +++ b/tensorflow/lite/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("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") diff --git a/tensorflow/lite/models/smartreply/demo/app/src/main/assets/BUILD b/tensorflow/lite/models/smartreply/demo/app/src/main/assets/BUILD index 3c882ffc43f..86023676484 100644 --- a/tensorflow/lite/models/smartreply/demo/app/src/main/assets/BUILD +++ b/tensorflow/lite/models/smartreply/demo/app/src/main/assets/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 +) exports_files(glob(["*"])) diff --git a/tensorflow/lite/toco/python/BUILD b/tensorflow/lite/toco/python/BUILD index 168703b2cf8..b6c946f51bf 100644 --- a/tensorflow/lite/toco/python/BUILD +++ b/tensorflow/lite/toco/python/BUILD @@ -1,9 +1,10 @@ -package(default_visibility = [ - "//tensorflow/lite:__subpackages__", - "//tensorflow/tools/pip_package:__subpackages__", -]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + "//tensorflow/lite:__subpackages__", + "//tensorflow/tools/pip_package:__subpackages__", + ], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "tf_py_wrap_cc") load("//tensorflow:tensorflow.bzl", "tf_py_test") diff --git a/tensorflow/lite/tools/optimize/BUILD b/tensorflow/lite/tools/optimize/BUILD index ce78fb701c2..3205277c743 100644 --- a/tensorflow/lite/tools/optimize/BUILD +++ b/tensorflow/lite/tools/optimize/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 +) exports_files(glob([ "testdata/*.bin", diff --git a/tensorflow/python/data/experimental/kernel_tests/optimization/BUILD b/tensorflow/python/data/experimental/kernel_tests/optimization/BUILD index d775e792daf..d0dfbad4f65 100644 --- a/tensorflow/python/data/experimental/kernel_tests/optimization/BUILD +++ b/tensorflow/python/data/experimental/kernel_tests/optimization/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/kernel_tests/BUILD b/tensorflow/python/data/kernel_tests/BUILD index e08669692e7..8647d7e421b 100644 --- a/tensorflow/python/data/kernel_tests/BUILD +++ b/tensorflow/python/data/kernel_tests/BUILD @@ -2,10 +2,9 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_py_test") load("//tensorflow:tensorflow.bzl", "cuda_py_test") diff --git a/tensorflow/python/data/ops/BUILD b/tensorflow/python/data/ops/BUILD index 4ce35436282..6ece7cc2f01 100644 --- a/tensorflow/python/data/ops/BUILD +++ b/tensorflow/python/data/ops/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/util/BUILD b/tensorflow/python/data/util/BUILD index 2524b27c598..9aa5e39ffce 100644 --- a/tensorflow/python/data/util/BUILD +++ b/tensorflow/python/data/util/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/distribute/BUILD b/tensorflow/python/distribute/BUILD index a50e49aee4a..554bb3eaafd 100644 --- a/tensorflow/python/distribute/BUILD +++ b/tensorflow/python/distribute/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) load("//tensorflow:tensorflow.bzl", "py_test", "tf_py_test") diff --git a/tensorflow/python/eager/BUILD b/tensorflow/python/eager/BUILD index 008cb5d294d..1f588b7cf3c 100644 --- a/tensorflow/python/eager/BUILD +++ b/tensorflow/python/eager/BUILD @@ -1,4 +1,6 @@ -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "tf_py_test") load("//tensorflow:tensorflow.bzl", "cuda_py_test") diff --git a/tensorflow/python/kernel_tests/BUILD b/tensorflow/python/kernel_tests/BUILD index e9163a630c3..05dd424c649 100644 --- a/tensorflow/python/kernel_tests/BUILD +++ b/tensorflow/python/kernel_tests/BUILD @@ -2,10 +2,9 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_py_test") load("//tensorflow:tensorflow.bzl", "cuda_py_test") load("//tensorflow:tensorflow.bzl", "sycl_py_test") diff --git a/tensorflow/python/kernel_tests/random/BUILD b/tensorflow/python/kernel_tests/random/BUILD index 6bdac38af3d..09a73d4e19a 100644 --- a/tensorflow/python/kernel_tests/random/BUILD +++ b/tensorflow/python/kernel_tests/random/BUILD @@ -2,10 +2,9 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_py_test") load("//tensorflow:tensorflow.bzl", "cuda_py_test") load("//tensorflow:tensorflow.bzl", "sycl_py_test") diff --git a/tensorflow/python/kernel_tests/testdata/BUILD b/tensorflow/python/kernel_tests/testdata/BUILD index 45264c773ac..1a6aac87dbb 100644 --- a/tensorflow/python/kernel_tests/testdata/BUILD +++ b/tensorflow/python/kernel_tests/testdata/BUILD @@ -2,10 +2,9 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - filegroup( name = "self_adjoint_eig_op_test_files", srcs = ["self_adjoint_eig_fail_if_denorms_flushed.txt"], diff --git a/tensorflow/python/module/BUILD b/tensorflow/python/module/BUILD index 55909cc2672..e2c8f6c8370 100644 --- a/tensorflow/python/module/BUILD +++ b/tensorflow/python/module/BUILD @@ -1,9 +1,10 @@ -package(default_visibility = ["//tensorflow:internal"]) +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "tf_py_test") -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) py_library( diff --git a/tensorflow/python/ops/parallel_for/BUILD b/tensorflow/python/ops/parallel_for/BUILD index 82ab32ac0d4..71d13774efe 100644 --- a/tensorflow/python/ops/parallel_for/BUILD +++ b/tensorflow/python/ops/parallel_for/BUILD @@ -2,12 +2,11 @@ package( default_visibility = [ "//tensorflow:internal", ], + licenses = ["notice"], # Apache 2.0 ) load("//tensorflow:tensorflow.bzl", "cuda_py_test") -licenses(["notice"]) # Apache 2.0 - py_library( name = "parallel_for", srcs = [ diff --git a/tensorflow/python/ops/ragged/BUILD b/tensorflow/python/ops/ragged/BUILD index f2f1067600a..3c268d88cd5 100644 --- a/tensorflow/python/ops/ragged/BUILD +++ b/tensorflow/python/ops/ragged/BUILD @@ -8,10 +8,9 @@ package( "//nlp/projects/atc/tf/ops:__pkg__", "//tensorflow:internal", ], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) #------------------------------------------------------------------------------- diff --git a/tensorflow/python/ops/signal/BUILD b/tensorflow/python/ops/signal/BUILD index da2bf9c1d2d..9d0fe3a54b2 100644 --- a/tensorflow/python/ops/signal/BUILD +++ b/tensorflow/python/ops/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/stream_executor/lib/BUILD b/tensorflow/stream_executor/lib/BUILD index edf495898e9..e1c2a72577b 100644 --- a/tensorflow/stream_executor/lib/BUILD +++ b/tensorflow/stream_executor/lib/BUILD @@ -1,15 +1,16 @@ -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_cc_test") load("//tensorflow/stream_executor:build_defs.bzl", "stream_executor_friends") +package( + default_visibility = [":friends"], + licenses = ["notice"], # Apache 2.0 +) + package_group( name = "friends", packages = stream_executor_friends(), ) -package(default_visibility = [":friends"]) - filegroup( name = "c_srcs", data = glob([ diff --git a/tensorflow/tools/api/golden/BUILD b/tensorflow/tools/api/golden/BUILD index 4389a999e71..1e1c9e7198e 100644 --- a/tensorflow/tools/api/golden/BUILD +++ b/tensorflow/tools/api/golden/BUILD @@ -2,10 +2,9 @@ package( default_visibility = ["//tensorflow/tools/api:__subpackages__"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - filegroup( name = "api_golden_v1", srcs = glob(["v1/*.pbtxt"]), diff --git a/tensorflow/tools/common/BUILD b/tensorflow/tools/common/BUILD index 05fc81b0d97..c438c89be2d 100644 --- a/tensorflow/tools/common/BUILD +++ b/tensorflow/tools/common/BUILD @@ -1,14 +1,13 @@ # Description: # Common functionality for TensorFlow tooling -licenses(["notice"]) # Apache 2.0 - -exports_files(["LICENSE"]) - package( default_visibility = ["//tensorflow:__subpackages__"], + licenses = ["notice"], # Apache 2.0 ) +exports_files(["LICENSE"]) + load("//tensorflow:tensorflow.bzl", "py_test") py_library( diff --git a/tensorflow/tools/graph_transforms/BUILD b/tensorflow/tools/graph_transforms/BUILD index 836a3d94dbc..80dd9ce3b4e 100644 --- a/tensorflow/tools/graph_transforms/BUILD +++ b/tensorflow/tools/graph_transforms/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/third_party/hadoop/BUILD b/third_party/hadoop/BUILD index c3c5e428be0..563136afe3a 100644 --- a/third_party/hadoop/BUILD +++ b/third_party/hadoop/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 +) exports_files(["LICENSE.txt"]) diff --git a/third_party/sycl/BUILD b/third_party/sycl/BUILD index f631b6df06d..2b86f73b98b 100644 --- a/third_party/sycl/BUILD +++ b/third_party/sycl/BUILD @@ -1,3 +1,4 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) diff --git a/third_party/sycl/sycl/BUILD b/third_party/sycl/sycl/BUILD index b0456099543..65f5a8414c4 100644 --- a/third_party/sycl/sycl/BUILD +++ b/third_party/sycl/sycl/BUILD @@ -2,6 +2,7 @@ # A minimal BUILD file to make template files in this folder available. Without this BUILD file, # bazel returns errors when trying to access tpl files in this folder. -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +)