From 278ed897b5e500ee78e9e028e7c258fcd7f65f62 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 24 May 2019 03:40:05 -0700 Subject: [PATCH] Apply 'buildozer fix moveLicensesAndDistribs movePackageToTop' to all BUILD files. PiperOrigin-RevId: 249806664 --- tensorflow/c/experimental/BUILD | 4 +++- tensorflow/c/kernels/BUILD | 3 +-- tensorflow/cc/BUILD | 3 +-- tensorflow/compiler/jit/ops/BUILD | 3 +-- tensorflow/compiler/tf2xla/BUILD | 11 +++++------ tensorflow/compiler/tf2xla/cc/BUILD | 3 +-- tensorflow/compiler/tf2xla/lib/BUILD | 3 +-- tensorflow/compiler/tf2xla/python/BUILD | 3 +-- tensorflow/core/distributed_runtime/eager/BUILD | 11 ++++++----- tensorflow/core/kernels/BUILD | 7 ++++--- tensorflow/core/profiler/BUILD | 7 ++++--- tensorflow/core/profiler/internal/advisor/BUILD | 3 +-- tensorflow/core/profiler/internal/cpu/BUILD | 3 +-- tensorflow/core/profiler/internal/runtime/BUILD | 3 +-- tensorflow/core/profiler/rpc/BUILD | 7 ++++--- tensorflow/core/protobuf/tpu/BUILD | 4 +++- tensorflow/core/util/ctc/BUILD | 3 +-- tensorflow/core/util/tensor_bundle/BUILD | 3 +-- tensorflow/examples/get_started/regression/BUILD | 4 +++- tensorflow/examples/learn/BUILD | 3 +-- tensorflow/examples/speech_commands/BUILD | 3 +-- tensorflow/examples/tutorials/layers/BUILD | 3 +-- tensorflow/examples/tutorials/mnist/BUILD | 4 +++- tensorflow/lite/BUILD | 3 +-- tensorflow/lite/c/BUILD | 3 +-- tensorflow/lite/delegates/flex/BUILD | 13 +++++++------ tensorflow/lite/delegates/gpu/gl/converters/BUILD | 7 ++++--- tensorflow/lite/delegates/gpu/gl/runtime/BUILD | 7 ++++--- .../lite/delegates/gpu/java/src/main/native/BUILD | 7 ++++--- .../lite/delegates/nnapi/java/src/main/native/BUILD | 7 ++++--- tensorflow/lite/experimental/tensorboard/BUILD | 7 ++++--- tensorflow/lite/java/src/main/native/BUILD | 7 ++++--- tensorflow/lite/kernels/internal/BUILD | 11 ++++++----- tensorflow/lite/profiling/BUILD | 7 ++++--- tensorflow/lite/python/BUILD | 7 ++++--- tensorflow/lite/toco/tflite/BUILD | 3 +-- tensorflow/lite/tools/accuracy/BUILD | 11 ++++++----- tensorflow/lite/tools/accuracy/ilsvrc/BUILD | 11 ++++++----- tensorflow/lite/tools/benchmark/BUILD | 11 ++++++----- tensorflow/lite/tools/evaluation/proto/BUILD | 7 ++++--- tensorflow/lite/tools/evaluation/stages/BUILD | 7 ++++--- tensorflow/python/compat/BUILD | 4 +++- tensorflow/python/data/benchmarks/BUILD | 7 ++++--- tensorflow/python/data/experimental/BUILD | 7 ++++--- .../python/data/experimental/benchmarks/BUILD | 7 ++++--- .../experimental/kernel_tests/serialization/BUILD | 7 ++++--- tensorflow/python/data/experimental/ops/BUILD | 7 ++++--- tensorflow/python/distribute/experimental/BUILD | 3 +-- tensorflow/python/kernel_tests/distributions/BUILD | 3 +-- tensorflow/python/profiler/BUILD | 7 ++++--- tensorflow/python/saved_model/BUILD | 3 +-- tensorflow/python/tools/BUILD | 7 ++++--- tensorflow/python/tpu/profiler/BUILD | 3 +-- tensorflow/stream_executor/cuda/BUILD | 11 +++++------ tensorflow/tools/api/lib/BUILD | 3 +-- tensorflow/tools/benchmark/BUILD | 7 ++++--- tensorflow/tools/compatibility/BUILD | 7 ++++--- tensorflow/tools/compatibility/update/BUILD | 7 ++++--- tensorflow/tools/mlpbtxt/BUILD | 7 ++++--- .../tools/tensorflow_builder/data/golden/BUILD | 3 +-- tensorflow/tools/test/BUILD | 7 ++++--- 61 files changed, 185 insertions(+), 169 deletions(-) diff --git a/tensorflow/c/experimental/BUILD b/tensorflow/c/experimental/BUILD index b66969eb3ff..bc408e637c2 100644 --- a/tensorflow/c/experimental/BUILD +++ b/tensorflow/c/experimental/BUILD @@ -1,7 +1,9 @@ # Description: # Experimental C APIs for TensorFlow. -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow:tensorflow.bzl", diff --git a/tensorflow/c/kernels/BUILD b/tensorflow/c/kernels/BUILD index 597182ab016..c71f6f1cca2 100644 --- a/tensorflow/c/kernels/BUILD +++ b/tensorflow/c/kernels/BUILD @@ -6,10 +6,9 @@ load( package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - tf_kernel_library( name = "bitcast_op", prefix = "bitcast_op", diff --git a/tensorflow/cc/BUILD b/tensorflow/cc/BUILD index fd80a885064..c5e1262cec3 100644 --- a/tensorflow/cc/BUILD +++ b/tensorflow/cc/BUILD @@ -4,10 +4,9 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - filegroup( name = "srcs", srcs = [ diff --git a/tensorflow/compiler/jit/ops/BUILD b/tensorflow/compiler/jit/ops/BUILD index 64409d93347..3b7a74ec780 100644 --- a/tensorflow/compiler/jit/ops/BUILD +++ b/tensorflow/compiler/jit/ops/BUILD @@ -1,7 +1,6 @@ -licenses(["notice"]) # Apache 2.0 - package( default_visibility = ["//tensorflow/compiler/tf2xla:internal"], + licenses = ["notice"], # Apache 2.0 ) load("//tensorflow:tensorflow.bzl", "tf_gen_op_wrapper_py") diff --git a/tensorflow/compiler/tf2xla/BUILD b/tensorflow/compiler/tf2xla/BUILD index 61e10e86a26..2bc8ab45a51 100644 --- a/tensorflow/compiler/tf2xla/BUILD +++ b/tensorflow/compiler/tf2xla/BUILD @@ -1,7 +1,10 @@ -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_cc_binary", "tf_cc_test", "tf_cuda_cc_test") +package( + default_visibility = [":internal"], + licenses = ["notice"], # Apache 2.0 +) + package_group( name = "internal", packages = [ @@ -23,10 +26,6 @@ package_group( ], ) -package( - default_visibility = [":internal"], -) - load( "//tensorflow/core:platform/default/cuda_build_defs.bzl", "if_cuda_is_configured", diff --git a/tensorflow/compiler/tf2xla/cc/BUILD b/tensorflow/compiler/tf2xla/cc/BUILD index adcdb6c8f76..fb7c8c56ac7 100644 --- a/tensorflow/compiler/tf2xla/cc/BUILD +++ b/tensorflow/compiler/tf2xla/cc/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//tensorflow/compiler/tf2xla:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_gen_op_wrapper_cc") tf_gen_op_wrapper_cc( diff --git a/tensorflow/compiler/tf2xla/lib/BUILD b/tensorflow/compiler/tf2xla/lib/BUILD index f9ce50be6e3..5b1f92b24c8 100644 --- a/tensorflow/compiler/tf2xla/lib/BUILD +++ b/tensorflow/compiler/tf2xla/lib/BUILD @@ -1,9 +1,8 @@ # Utilities for building XLA computations. -licenses(["notice"]) # Apache 2.0 - package( default_visibility = ["//tensorflow/compiler/tf2xla:friends"], + licenses = ["notice"], # Apache 2.0 ) # Filegroup used to collect source files for dependency checking. diff --git a/tensorflow/compiler/tf2xla/python/BUILD b/tensorflow/compiler/tf2xla/python/BUILD index c6f57b386eb..c731d52ea2b 100644 --- a/tensorflow/compiler/tf2xla/python/BUILD +++ b/tensorflow/compiler/tf2xla/python/BUILD @@ -1,9 +1,8 @@ -licenses(["notice"]) # Apache 2.0 - package( default_visibility = [ "//visibility:public", ], + licenses = ["notice"], # Apache 2.0 ) load( diff --git a/tensorflow/core/distributed_runtime/eager/BUILD b/tensorflow/core/distributed_runtime/eager/BUILD index 6f08943e2d2..2bac492c44a 100644 --- a/tensorflow/core/distributed_runtime/eager/BUILD +++ b/tensorflow/core/distributed_runtime/eager/BUILD @@ -1,8 +1,9 @@ -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/BUILD b/tensorflow/core/kernels/BUILD index c74173fdf71..14988494f22 100644 --- a/tensorflow/core/kernels/BUILD +++ b/tensorflow/core/kernels/BUILD @@ -11,9 +11,10 @@ # # for GPU benchmarks # $ bazel run --config opt --config=cuda //third_party/tensorflow/core/kernels:my_op_test_gpu -- --benchmarks=.. # -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) package_group( name = "friends", diff --git a/tensorflow/core/profiler/BUILD b/tensorflow/core/profiler/BUILD index 0ffd170e310..410c7582ffa 100644 --- a/tensorflow/core/profiler/BUILD +++ b/tensorflow/core/profiler/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", "tf_cc_binary") load("//tensorflow/core:platform/default/build_config.bzl", "tf_proto_library") diff --git a/tensorflow/core/profiler/internal/advisor/BUILD b/tensorflow/core/profiler/internal/advisor/BUILD index 1fedb05ae31..72dd72119a2 100644 --- a/tensorflow/core/profiler/internal/advisor/BUILD +++ b/tensorflow/core/profiler/internal/advisor/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_cc_test") cc_library( diff --git a/tensorflow/core/profiler/internal/cpu/BUILD b/tensorflow/core/profiler/internal/cpu/BUILD index a07e51fe003..d3326381535 100644 --- a/tensorflow/core/profiler/internal/cpu/BUILD +++ b/tensorflow/core/profiler/internal/cpu/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_cuda_library", diff --git a/tensorflow/core/profiler/internal/runtime/BUILD b/tensorflow/core/profiler/internal/runtime/BUILD index 085fed81578..df40613e327 100644 --- a/tensorflow/core/profiler/internal/runtime/BUILD +++ b/tensorflow/core/profiler/internal/runtime/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_cuda_library", diff --git a/tensorflow/core/profiler/rpc/BUILD b/tensorflow/core/profiler/rpc/BUILD index cb6c1456ec2..8d027a18d87 100644 --- a/tensorflow/core/profiler/rpc/BUILD +++ b/tensorflow/core/profiler/rpc/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", "tf_cuda_library") diff --git a/tensorflow/core/protobuf/tpu/BUILD b/tensorflow/core/protobuf/tpu/BUILD index ea98ee25c89..86c324780cb 100644 --- a/tensorflow/core/protobuf/tpu/BUILD +++ b/tensorflow/core/protobuf/tpu/BUILD @@ -1,4 +1,6 @@ -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/core/util/ctc/BUILD b/tensorflow/core/util/ctc/BUILD index 317420204e2..d25b85fad32 100644 --- a/tensorflow/core/util/ctc/BUILD +++ b/tensorflow/core/util/ctc/BUILD @@ -4,10 +4,9 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_cc_tests") filegroup( diff --git a/tensorflow/core/util/tensor_bundle/BUILD b/tensorflow/core/util/tensor_bundle/BUILD index 241f844684e..91efede0269 100644 --- a/tensorflow/core/util/tensor_bundle/BUILD +++ b/tensorflow/core/util/tensor_bundle/BUILD @@ -3,10 +3,9 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow:tensorflow.bzl", "cc_header_only_library", diff --git a/tensorflow/examples/get_started/regression/BUILD b/tensorflow/examples/get_started/regression/BUILD index cdef25ce495..c04934b7d6d 100644 --- a/tensorflow/examples/get_started/regression/BUILD +++ b/tensorflow/examples/get_started/regression/BUILD @@ -1,4 +1,6 @@ -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/examples/learn/BUILD b/tensorflow/examples/learn/BUILD index d98fe96f47a..249e256797d 100644 --- a/tensorflow/examples/learn/BUILD +++ b/tensorflow/examples/learn/BUILD @@ -3,10 +3,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/examples/speech_commands/BUILD b/tensorflow/examples/speech_commands/BUILD index f498f2a390d..23e3c5760f2 100644 --- a/tensorflow/examples/speech_commands/BUILD +++ b/tensorflow/examples/speech_commands/BUILD @@ -2,10 +2,9 @@ package( default_visibility = [ "//visibility:public", ], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files([ "LICENSE", ]) diff --git a/tensorflow/examples/tutorials/layers/BUILD b/tensorflow/examples/tutorials/layers/BUILD index e4383d155b0..99a9a9c840c 100644 --- a/tensorflow/examples/tutorials/layers/BUILD +++ b/tensorflow/examples/tutorials/layers/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/examples/tutorials/mnist/BUILD b/tensorflow/examples/tutorials/mnist/BUILD index 6839c486144..5b7d3e71aef 100644 --- a/tensorflow/examples/tutorials/mnist/BUILD +++ b/tensorflow/examples/tutorials/mnist/BUILD @@ -1,7 +1,9 @@ # Description: # Example TensorFlow models for MNIST used in tutorials -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/lite/BUILD b/tensorflow/lite/BUILD index f43b8fd4c17..47a8dd01a63 100644 --- a/tensorflow/lite/BUILD +++ b/tensorflow/lite/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "if_not_windows", "tf_cc_test") load("//tensorflow/lite:build_def.bzl", "tflite_cc_shared_object", "tflite_copts") load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") diff --git a/tensorflow/lite/c/BUILD b/tensorflow/lite/c/BUILD index 661b648550c..ca625e0fda9 100644 --- a/tensorflow/lite/c/BUILD +++ b/tensorflow/lite/c/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - cc_library( name = "c_api_internal", srcs = ["c_api_internal.c"], diff --git a/tensorflow/lite/delegates/flex/BUILD b/tensorflow/lite/delegates/flex/BUILD index acf3db29e81..bf8790d381a 100644 --- a/tensorflow/lite/delegates/flex/BUILD +++ b/tensorflow/lite/delegates/flex/BUILD @@ -1,12 +1,13 @@ # # This is a TF Lite delegate that is powered by TensorFlow's Eager. # -package(default_visibility = [ - "//tensorflow/compiler/mlir/lite:__subpackages__", - "//tensorflow/lite/toco/tflite:__subpackages__", -]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + "//tensorflow/compiler/mlir/lite:__subpackages__", + "//tensorflow/lite/toco/tflite:__subpackages__", + ], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "tf_cc_test") diff --git a/tensorflow/lite/delegates/gpu/gl/converters/BUILD b/tensorflow/lite/delegates/gpu/gl/converters/BUILD index 8f6b5618dd6..0be7e873445 100644 --- a/tensorflow/lite/delegates/gpu/gl/converters/BUILD +++ b/tensorflow/lite/delegates/gpu/gl/converters/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/runtime/BUILD b/tensorflow/lite/delegates/gpu/gl/runtime/BUILD index 98d03f77adb..20b307359db 100644 --- a/tensorflow/lite/delegates/gpu/gl/runtime/BUILD +++ b/tensorflow/lite/delegates/gpu/gl/runtime/BUILD @@ -1,6 +1,7 @@ -package(default_visibility = ["//tensorflow/lite/delegates/gpu/gl:__subpackages__"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow/lite/delegates/gpu/gl:__subpackages__"], + licenses = ["notice"], # Apache 2.0 +) cc_library( name = "shared_buffer", diff --git a/tensorflow/lite/delegates/gpu/java/src/main/native/BUILD b/tensorflow/lite/delegates/gpu/java/src/main/native/BUILD index 7f8162275f3..b1731e7c1c4 100644 --- a/tensorflow/lite/delegates/gpu/java/src/main/native/BUILD +++ b/tensorflow/lite/delegates/gpu/java/src/main/native/BUILD @@ -2,12 +2,13 @@ # Java Native Interface (JNI) library intended for implementing the # TensorFlow Lite GPU delegate Java API using the TensorFlow Lite CC library. -package(default_visibility = ["//visibility:public"]) +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite:build_def.bzl", "tflite_copts") -licenses(["notice"]) # Apache 2.0 - cc_library( name = "native", srcs = ["gpu_delegate_jni.cc"], diff --git a/tensorflow/lite/delegates/nnapi/java/src/main/native/BUILD b/tensorflow/lite/delegates/nnapi/java/src/main/native/BUILD index 4c12ef344d5..88490d570f9 100644 --- a/tensorflow/lite/delegates/nnapi/java/src/main/native/BUILD +++ b/tensorflow/lite/delegates/nnapi/java/src/main/native/BUILD @@ -2,12 +2,13 @@ # Java Native Interface (JNI) library intended for implementing the # TensorFlow Lite GPU delegate Java API using the TensorFlow Lite CC library. -package(default_visibility = ["//visibility:public"]) +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite:build_def.bzl", "tflite_copts") -licenses(["notice"]) # Apache 2.0 - cc_library( name = "native", srcs = ["nnapi_delegate_jni.cc"], diff --git a/tensorflow/lite/experimental/tensorboard/BUILD b/tensorflow/lite/experimental/tensorboard/BUILD index 69983649b3f..af2ed21008d 100644 --- a/tensorflow/lite/experimental/tensorboard/BUILD +++ b/tensorflow/lite/experimental/tensorboard/BUILD @@ -1,8 +1,9 @@ # TFLite modules to support TensorBoard plugin. -package(default_visibility = ["//tensorflow:internal"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) py_library( name = "ops_util", diff --git a/tensorflow/lite/java/src/main/native/BUILD b/tensorflow/lite/java/src/main/native/BUILD index e5ec209b2e7..676fb78ed1c 100644 --- a/tensorflow/lite/java/src/main/native/BUILD +++ b/tensorflow/lite/java/src/main/native/BUILD @@ -2,12 +2,13 @@ # Java Native Interface (JNI) library intended for implementing the # TensorFlow Lite Java API using the TensorFlow Lite CC library. -package(default_visibility = ["//visibility:public"]) +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow/lite:build_def.bzl", "tflite_copts") -licenses(["notice"]) # Apache 2.0 - cc_library( name = "native_framework_only", srcs = [ diff --git a/tensorflow/lite/kernels/internal/BUILD b/tensorflow/lite/kernels/internal/BUILD index a908e3c4b65..1e91d0a6b2c 100644 --- a/tensorflow/lite/kernels/internal/BUILD +++ b/tensorflow/lite/kernels/internal/BUILD @@ -2,11 +2,12 @@ load("//tensorflow:tensorflow.bzl", "transitive_hdrs") load("//tensorflow/lite:build_def.bzl", "tflite_copts") load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") -package(default_visibility = [ - "//visibility:public", -]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = [ + "//visibility:public", + ], + licenses = ["notice"], # Apache 2.0 +) tflite_deps_intel = [ "@arm_neon_2_x86_sse", diff --git a/tensorflow/lite/profiling/BUILD b/tensorflow/lite/profiling/BUILD index 452c53aff94..4779d47d838 100644 --- a/tensorflow/lite/profiling/BUILD +++ b/tensorflow/lite/profiling/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:build_def.bzl", "tflite_copts") diff --git a/tensorflow/lite/python/BUILD b/tensorflow/lite/python/BUILD index 17953e21d03..a7fcf51718a 100644 --- a/tensorflow/lite/python/BUILD +++ b/tensorflow/lite/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 +) load("//tensorflow:tensorflow.bzl", "py_test") diff --git a/tensorflow/lite/toco/tflite/BUILD b/tensorflow/lite/toco/tflite/BUILD index e2da7f81735..b364c57c04d 100644 --- a/tensorflow/lite/toco/tflite/BUILD +++ b/tensorflow/lite/toco/tflite/BUILD @@ -1,10 +1,9 @@ package( # To suppress build cleaner error about inclusion of schema_generate.h. features = ["-layering_check"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow:tensorflow.bzl", "tf_cc_test", diff --git a/tensorflow/lite/tools/accuracy/BUILD b/tensorflow/lite/tools/accuracy/BUILD index 26e4cf85aae..7484b2e424c 100644 --- a/tensorflow/lite/tools/accuracy/BUILD +++ b/tensorflow/lite/tools/accuracy/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/tools/accuracy/ilsvrc/BUILD b/tensorflow/lite/tools/accuracy/ilsvrc/BUILD index 88162ac810c..cb5f7ca6cf0 100644 --- a/tensorflow/lite/tools/accuracy/ilsvrc/BUILD +++ b/tensorflow/lite/tools/accuracy/ilsvrc/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", "tflite_linkopts") diff --git a/tensorflow/lite/tools/benchmark/BUILD b/tensorflow/lite/tools/benchmark/BUILD index c692b948692..74b3dad9bdd 100644 --- a/tensorflow/lite/tools/benchmark/BUILD +++ b/tensorflow/lite/tools/benchmark/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:tensorflow.bzl", "tf_cc_binary") load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") diff --git a/tensorflow/lite/tools/evaluation/proto/BUILD b/tensorflow/lite/tools/evaluation/proto/BUILD index fd1f0209f3e..c25e35eeafc 100644 --- a/tensorflow/lite/tools/evaluation/proto/BUILD +++ b/tensorflow/lite/tools/evaluation/proto/BUILD @@ -13,9 +13,10 @@ # limitations under the License. # ============================================================================== -licenses(["notice"]) # Apache 2.0 - -package(default_visibility = ["//visibility:public"]) +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) proto_library( name = "evaluation_stages_proto", diff --git a/tensorflow/lite/tools/evaluation/stages/BUILD b/tensorflow/lite/tools/evaluation/stages/BUILD index f12f9f06908..05d5c66e21d 100644 --- a/tensorflow/lite/tools/evaluation/stages/BUILD +++ b/tensorflow/lite/tools/evaluation/stages/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/python/compat/BUILD b/tensorflow/python/compat/BUILD index 87dd5d7f669..8b7f9b5fecf 100644 --- a/tensorflow/python/compat/BUILD +++ b/tensorflow/python/compat/BUILD @@ -1,4 +1,6 @@ -licenses(["notice"]) # Apache 2.0 +package( + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/python/data/benchmarks/BUILD b/tensorflow/python/data/benchmarks/BUILD index 8e06bd33ebd..0882553f430 100644 --- a/tensorflow/python/data/benchmarks/BUILD +++ b/tensorflow/python/data/benchmarks/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/BUILD b/tensorflow/python/data/experimental/BUILD index 84e761d3763..5264b4a7791 100644 --- a/tensorflow/python/data/experimental/BUILD +++ b/tensorflow/python/data/experimental/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/benchmarks/BUILD b/tensorflow/python/data/experimental/benchmarks/BUILD index 95b0c340824..7b9d809ea89 100644 --- a/tensorflow/python/data/experimental/benchmarks/BUILD +++ b/tensorflow/python/data/experimental/benchmarks/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/serialization/BUILD b/tensorflow/python/data/experimental/kernel_tests/serialization/BUILD index b566bb68ad9..774ff9382ac 100644 --- a/tensorflow/python/data/experimental/kernel_tests/serialization/BUILD +++ b/tensorflow/python/data/experimental/kernel_tests/serialization/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/ops/BUILD b/tensorflow/python/data/experimental/ops/BUILD index c5b4508b564..a581bc9fccc 100644 --- a/tensorflow/python/data/experimental/ops/BUILD +++ b/tensorflow/python/data/experimental/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/distribute/experimental/BUILD b/tensorflow/python/distribute/experimental/BUILD index 76a36b8f081..581f18b815a 100644 --- a/tensorflow/python/distribute/experimental/BUILD +++ b/tensorflow/python/distribute/experimental/BUILD @@ -1,9 +1,8 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) py_library( diff --git a/tensorflow/python/kernel_tests/distributions/BUILD b/tensorflow/python/kernel_tests/distributions/BUILD index 343e9637ce4..3add5e94ab8 100644 --- a/tensorflow/python/kernel_tests/distributions/BUILD +++ b/tensorflow/python/kernel_tests/distributions/BUILD @@ -2,10 +2,9 @@ package( default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "cuda_py_test") cuda_py_test( diff --git a/tensorflow/python/profiler/BUILD b/tensorflow/python/profiler/BUILD index f2796e43989..52a7ec1d214 100644 --- a/tensorflow/python/profiler/BUILD +++ b/tensorflow/python/profiler/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", "cuda_py_test") load("//tensorflow:tensorflow.bzl", "py_test") diff --git a/tensorflow/python/saved_model/BUILD b/tensorflow/python/saved_model/BUILD index a7d87c7d1a4..da76bd252b2 100644 --- a/tensorflow/python/saved_model/BUILD +++ b/tensorflow/python/saved_model/BUILD @@ -5,10 +5,9 @@ package( # TODO(drpng): change that to //third_party/tensorflow:internal # when we have migrated all users. default_visibility = ["//visibility:public"], + 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/tools/BUILD b/tensorflow/python/tools/BUILD index 8e1ccb6d458..3aa67dea910 100644 --- a/tensorflow/python/tools/BUILD +++ b/tensorflow/python/tools/BUILD @@ -1,9 +1,10 @@ # Description: # Tools for manipulating TensorFlow graphs. -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], # Apache 2.0 +) exports_files(["LICENSE"]) diff --git a/tensorflow/python/tpu/profiler/BUILD b/tensorflow/python/tpu/profiler/BUILD index ddfc26eeea8..3f503f9c3fc 100644 --- a/tensorflow/python/tpu/profiler/BUILD +++ b/tensorflow/python/tpu/profiler/BUILD @@ -1,9 +1,8 @@ -licenses(["notice"]) # Apache 2.0 - package( default_visibility = [ "//tensorflow:__subpackages__", ], + licenses = ["notice"], # Apache 2.0 ) py_library( diff --git a/tensorflow/stream_executor/cuda/BUILD b/tensorflow/stream_executor/cuda/BUILD index 4f6dd2cc388..4af3086f315 100644 --- a/tensorflow/stream_executor/cuda/BUILD +++ b/tensorflow/stream_executor/cuda/BUILD @@ -1,8 +1,6 @@ # Description: # CUDA-platform specific StreamExecutor support code. -licenses(["notice"]) # Apache 2.0 - load("//tensorflow:tensorflow.bzl", "tf_cc_test") load( "//tensorflow/stream_executor:build_defs.bzl", @@ -19,15 +17,16 @@ load( ) 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/lib/BUILD b/tensorflow/tools/api/lib/BUILD index 3f4fb910427..20ad8f9af9f 100644 --- a/tensorflow/tools/api/lib/BUILD +++ b/tensorflow/tools/api/lib/BUILD @@ -2,10 +2,9 @@ package( default_visibility = ["//tensorflow/tools/api:__subpackages__"], + licenses = ["notice"], # Apache 2.0 ) -licenses(["notice"]) # Apache 2.0 - load( "//tensorflow/core:platform/default/build_config.bzl", "tf_proto_library", diff --git a/tensorflow/tools/benchmark/BUILD b/tensorflow/tools/benchmark/BUILD index fd3851dc809..318dfdd8a1d 100644 --- a/tensorflow/tools/benchmark/BUILD +++ b/tensorflow/tools/benchmark/BUILD @@ -1,9 +1,10 @@ # Description: # Benchmark utility that can run on desktop and Android. -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/compatibility/BUILD b/tensorflow/tools/compatibility/BUILD index 987ad34bd49..c4fc1a993df 100644 --- a/tensorflow/tools/compatibility/BUILD +++ b/tensorflow/tools/compatibility/BUILD @@ -5,9 +5,10 @@ load( "tf_copts", # @unused ) -licenses(["notice"]) # Apache 2.0 - -package(default_visibility = ["//tensorflow:internal"]) +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) py_library( name = "ipynb", diff --git a/tensorflow/tools/compatibility/update/BUILD b/tensorflow/tools/compatibility/update/BUILD index 1758e0ec9f9..5a74271e882 100644 --- a/tensorflow/tools/compatibility/update/BUILD +++ b/tensorflow/tools/compatibility/update/BUILD @@ -1,6 +1,7 @@ -licenses(["notice"]) # Apache 2.0 - -package(default_visibility = ["//visibility:private"]) +package( + default_visibility = ["//visibility:private"], + licenses = ["notice"], # Apache 2.0 +) py_binary( name = "generate_v2_renames_map", diff --git a/tensorflow/tools/mlpbtxt/BUILD b/tensorflow/tools/mlpbtxt/BUILD index 89c683c8c42..f17d7511f42 100644 --- a/tensorflow/tools/mlpbtxt/BUILD +++ b/tensorflow/tools/mlpbtxt/BUILD @@ -2,9 +2,10 @@ # This package provides binaries that convert between multi-line and standard # pbtxt (text-serialization of protocol message) files. -package(default_visibility = ["//visibility:private"]) - -licenses(["notice"]) # Apache 2.0 +package( + default_visibility = ["//visibility:private"], + licenses = ["notice"], # Apache 2.0 +) load("//tensorflow:tensorflow.bzl", "tf_cc_binary") diff --git a/tensorflow/tools/tensorflow_builder/data/golden/BUILD b/tensorflow/tools/tensorflow_builder/data/golden/BUILD index 1980dc882ce..122fbeef442 100644 --- a/tensorflow/tools/tensorflow_builder/data/golden/BUILD +++ b/tensorflow/tools/tensorflow_builder/data/golden/BUILD @@ -1,11 +1,10 @@ # TODO(hyey): describe this package. -licenses(["notice"]) # Apache 2.0 - package( default_visibility = [ "//tensorflow/tools/tensorflow_builder:__subpackages__", ], + licenses = ["notice"], # Apache 2.0 ) filegroup( diff --git a/tensorflow/tools/test/BUILD b/tensorflow/tools/test/BUILD index 0d26c0198ef..191d6c4130b 100644 --- a/tensorflow/tools/test/BUILD +++ b/tensorflow/tools/test/BUILD @@ -1,7 +1,10 @@ # Description: # Tools for testing -package(default_visibility = ["//tensorflow:internal"]) +package( + default_visibility = ["//tensorflow:internal"], + licenses = ["notice"], # Apache 2.0 +) load( "//tensorflow/tools/test:performance.bzl", @@ -10,8 +13,6 @@ load( ) load("//tensorflow:tensorflow.bzl", "py_test") -licenses(["notice"]) # Apache 2.0 - exports_files(["LICENSE"]) py_library(