diff options
author | 2017-08-05 14:16:43 -0700 | |
---|---|---|
committer | 2017-08-05 14:20:46 -0700 | |
commit | dfd8e7110e805d83554da4dd8d37a0e72da8a3b6 (patch) | |
tree | b3d7b3d807eb1f6b8361bef094dac5632f15ad15 | |
parent | 6f898c6b2cbbc257d0966ee313a3670e88919463 (diff) |
BUILD cleanup
PiperOrigin-RevId: 164369858
20 files changed, 55 insertions, 73 deletions
diff --git a/tensorflow/compiler/tf2xla/kernels/BUILD b/tensorflow/compiler/tf2xla/kernels/BUILD index ea85dcbf9a..ebae506a8b 100644 --- a/tensorflow/compiler/tf2xla/kernels/BUILD +++ b/tensorflow/compiler/tf2xla/kernels/BUILD @@ -1,10 +1,7 @@ licenses(["notice"]) # Apache 2.0 package( - default_visibility = [ - "//tensorflow/compiler/tf2xla:internal", - ], - features = ["no_layering_check"], + default_visibility = ["//tensorflow/compiler/tf2xla:internal"], ) load("//tensorflow:tensorflow.bzl", "tf_kernel_library") @@ -78,12 +75,16 @@ tf_kernel_library( "//tensorflow/compiler/tf2xla:xla_compiler", "//tensorflow/compiler/tf2xla/ops:sendrecv_ops", "//tensorflow/compiler/xla:literal_util", + "//tensorflow/compiler/xla:util", + "//tensorflow/compiler/xla:xla_data_proto", "//tensorflow/compiler/xla/client:client_library", "//tensorflow/compiler/xla/client:computation_builder", "//tensorflow/compiler/xla/client/lib:arithmetic", "//tensorflow/core:framework", "//tensorflow/core:lib", + "//tensorflow/core:protos_all_cc", "//tensorflow/core:tensorflow_opensource", + "//tensorflow/core/kernels:bounds_check", "//tensorflow/core/kernels:concat_lib", "//tensorflow/core/kernels:conv_ops", "//tensorflow/core/kernels:cwise_op", @@ -103,9 +104,11 @@ tf_kernel_library( "//tensorflow/compiler/tf2xla:common", "//tensorflow/compiler/tf2xla:xla_compiler", "//tensorflow/compiler/tf2xla/ops:functional_ops", + "//tensorflow/compiler/xla:literal_util", "//tensorflow/compiler/xla/client:computation_builder", "//tensorflow/core:framework", "//tensorflow/core:lib", + "//tensorflow/core:protos_all_cc", "//tensorflow/core:tensorflow_opensource", ], ) @@ -135,6 +138,7 @@ tf_kernel_library( "//tensorflow/core:framework", "//tensorflow/core:lib", "//tensorflow/core:tensorflow_opensource", + "//tensorflow/core/kernels:bounds_check", ], ) diff --git a/tensorflow/compiler/xla/service/cpu/BUILD b/tensorflow/compiler/xla/service/cpu/BUILD index f3e33eb6c5..94b531fc19 100644 --- a/tensorflow/compiler/xla/service/cpu/BUILD +++ b/tensorflow/compiler/xla/service/cpu/BUILD @@ -5,10 +5,7 @@ licenses(["notice"]) # Apache 2.0 package( default_visibility = [":friends"], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) package_group( @@ -116,6 +113,7 @@ cc_library( "//tensorflow/compiler/xla:util", "//tensorflow/core:lib", "@llvm//:core", + "@llvm//:execution_engine", "@llvm//:mc", # fixdeps: keep "@llvm//:orc_jit", "@llvm//:support", @@ -215,6 +213,7 @@ cc_library( "//tensorflow/core:lib", "@llvm//:core", "@llvm//:support", + "@llvm//:target", ], ) @@ -296,6 +295,7 @@ cc_library( "//tensorflow/core:lib", "@llvm//:analysis", "@llvm//:core", + "@llvm//:execution_engine", "@llvm//:ipo", "@llvm//:mc", "@llvm//:object", @@ -446,6 +446,7 @@ cc_test( srcs = ["xfeed_manager_test.cc"], deps = [ ":cpu_runtime", + "//tensorflow/compiler/xla:shape_util", "//tensorflow/core:lib", "//tensorflow/core:test", "//tensorflow/core:test_main", diff --git a/tensorflow/compiler/xla/tests/BUILD b/tensorflow/compiler/xla/tests/BUILD index 8fe709be95..3dd45486a8 100644 --- a/tensorflow/compiler/xla/tests/BUILD +++ b/tensorflow/compiler/xla/tests/BUILD @@ -5,7 +5,6 @@ licenses(["notice"]) # Apache 2.0 package( default_visibility = [":friends"], - features = ["no_layering_check"], ) package_group( @@ -137,6 +136,7 @@ cc_binary( "//tensorflow/compiler/xla/service/cpu:cpu_compiler", "//tensorflow/compiler/xla/service/llvm_ir:llvm_util", "//tensorflow/core:lib", + "@llvm//:support", ], ) @@ -512,6 +512,7 @@ xla_test( "//tensorflow/compiler/xla/client:computation_builder", "//tensorflow/compiler/xla/client:global_data", "//tensorflow/compiler/xla/client:local_client", + "//tensorflow/compiler/xla/service:reduce_precision_insertion", "//tensorflow/compiler/xla/tests:client_library_test_base", "//tensorflow/compiler/xla/tests:literal_test_util", "//tensorflow/compiler/xla/tests:xla_internal_test_main", diff --git a/tensorflow/contrib/batching/BUILD b/tensorflow/contrib/batching/BUILD index fac4c41d83..dec602d733 100644 --- a/tensorflow/contrib/batching/BUILD +++ b/tensorflow/contrib/batching/BUILD @@ -2,7 +2,6 @@ package( default_visibility = ["//visibility:public"], - features = ["-layering_check"], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/contrib/batching/test_util/BUILD b/tensorflow/contrib/batching/test_util/BUILD index 491991b4c6..d1ced0d8c3 100644 --- a/tensorflow/contrib/batching/test_util/BUILD +++ b/tensorflow/contrib/batching/test_util/BUILD @@ -2,7 +2,6 @@ package( default_visibility = ["//tensorflow:internal"], - features = ["-layering_check"], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/contrib/batching/util/BUILD b/tensorflow/contrib/batching/util/BUILD index 21dd26722a..12666504eb 100644 --- a/tensorflow/contrib/batching/util/BUILD +++ b/tensorflow/contrib/batching/util/BUILD @@ -2,7 +2,6 @@ package( default_visibility = ["//tensorflow:internal"], - features = ["-layering_check"], ) licenses(["notice"]) # Apache 2.0 @@ -44,7 +43,7 @@ cc_test( size = "small", srcs = ["periodic_function_test.cc"], deps = [ - ":periodic_function", + ":periodic_function_dynamic", "//tensorflow/contrib/batching/test_util:fake_clock_env", "//tensorflow/core:test", "//tensorflow/core:test_main", diff --git a/tensorflow/core/profiler/internal/BUILD b/tensorflow/core/profiler/internal/BUILD index 3bbe0603c6..f9dd1e8c7c 100644 --- a/tensorflow/core/profiler/internal/BUILD +++ b/tensorflow/core/profiler/internal/BUILD @@ -1,9 +1,6 @@ package( default_visibility = ["//tensorflow:internal"], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 @@ -116,6 +113,7 @@ cc_library( "//tensorflow/c:checkpoint_reader", "//tensorflow/core:framework", "//tensorflow/core:lib", + "//tensorflow/core:lib_internal", "//tensorflow/core:protos_all_cc", "//tensorflow/core:regexp_internal", "//tensorflow/core/profiler:protos_all_cc", @@ -217,6 +215,9 @@ tf_cc_test( ":tfprof_tf_testlib", ":tfprof_utils", "//tensorflow/c:checkpoint_reader", + "//tensorflow/core:lib", + "//tensorflow/core:protos_all_cc", + "//tensorflow/core:test", "//tensorflow/core/profiler:protos_all_cc", ], ) @@ -235,6 +236,11 @@ tf_cc_test( ":tfprof_stats", ":tfprof_tf_testlib", ":tfprof_utils", + "//tensorflow/c:checkpoint_reader", + "//tensorflow/core:lib", + "//tensorflow/core:lib_internal", + "//tensorflow/core:protos_all_cc", + "//tensorflow/core:test", "//tensorflow/core/profiler:protos_all_cc", ], ) @@ -307,6 +313,9 @@ tf_cc_test( ":tfprof_tf_testlib", ":tfprof_utils", "//tensorflow/c:checkpoint_reader", + "//tensorflow/core:lib", + "//tensorflow/core:protos_all_cc", + "//tensorflow/core:test", "//tensorflow/core/profiler:protos_all_cc", ], ) @@ -339,6 +348,9 @@ tf_cc_test( ":tfprof_tf_testlib", ":tfprof_utils", "//tensorflow/c:checkpoint_reader", + "//tensorflow/core:lib", + "//tensorflow/core:protos_all_cc", + "//tensorflow/core:test", "//tensorflow/core/profiler:protos_all_cc", ], ) @@ -346,8 +358,6 @@ tf_cc_test( cc_library( name = "tfprof_constants", hdrs = ["tfprof_constants.h"], - deps = [ - ], ) cc_library( diff --git a/tensorflow/core/profiler/internal/advisor/BUILD b/tensorflow/core/profiler/internal/advisor/BUILD index e50145bf46..8c68ec6cb5 100644 --- a/tensorflow/core/profiler/internal/advisor/BUILD +++ b/tensorflow/core/profiler/internal/advisor/BUILD @@ -1,9 +1,6 @@ package( default_visibility = ["//tensorflow:internal"], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 @@ -69,6 +66,8 @@ tf_cc_test( srcs = ["tfprof_advisor_test.cc"], deps = [ ":tfprof_advisor", + "//tensorflow/core:lib", + "//tensorflow/core:test", "//tensorflow/core/profiler/internal:tfprof_tf_testlib", ], ) diff --git a/tensorflow/examples/adding_an_op/BUILD b/tensorflow/examples/adding_an_op/BUILD index f952cab8b5..9341e68273 100644 --- a/tensorflow/examples/adding_an_op/BUILD +++ b/tensorflow/examples/adding_an_op/BUILD @@ -3,10 +3,7 @@ package( default_visibility = ["//tensorflow:internal"], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 @@ -137,7 +134,10 @@ py_test( cc_binary( name = "attr_examples", srcs = ["attr_examples.cc"], - deps = ["//tensorflow/core"], + deps = [ + "//tensorflow/core", + "//tensorflow/core:framework", + ], ) filegroup( diff --git a/tensorflow/examples/label_image/BUILD b/tensorflow/examples/label_image/BUILD index ddbcf68df8..b086a4215d 100644 --- a/tensorflow/examples/label_image/BUILD +++ b/tensorflow/examples/label_image/BUILD @@ -37,7 +37,11 @@ cc_binary( ], "//conditions:default": [ "//tensorflow/cc:cc_ops", + "//tensorflow/core:core_cpu", + "//tensorflow/core:framework", "//tensorflow/core:framework_internal", + "//tensorflow/core:lib", + "//tensorflow/core:protos_all_cc", "//tensorflow/core:tensorflow", ], }), diff --git a/tensorflow/examples/multibox_detector/BUILD b/tensorflow/examples/multibox_detector/BUILD index e31d8081ac..4c04180042 100644 --- a/tensorflow/examples/multibox_detector/BUILD +++ b/tensorflow/examples/multibox_detector/BUILD @@ -3,10 +3,7 @@ package( default_visibility = ["//tensorflow:internal"], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/examples/saved_model/BUILD b/tensorflow/examples/saved_model/BUILD index 72066eabc3..1cdf5ec6e1 100644 --- a/tensorflow/examples/saved_model/BUILD +++ b/tensorflow/examples/saved_model/BUILD @@ -2,9 +2,6 @@ package( default_visibility = ["//tensorflow:internal"], - features = [ - "-layering_check", - ], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/examples/wav_to_spectrogram/BUILD b/tensorflow/examples/wav_to_spectrogram/BUILD index fdbda362ae..2b965be97d 100644 --- a/tensorflow/examples/wav_to_spectrogram/BUILD +++ b/tensorflow/examples/wav_to_spectrogram/BUILD @@ -3,10 +3,7 @@ package( default_visibility = ["//tensorflow:internal"], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/python/debug/BUILD b/tensorflow/python/debug/BUILD index 2d3eaa2b82..204691cf81 100644 --- a/tensorflow/python/debug/BUILD +++ b/tensorflow/python/debug/BUILD @@ -10,10 +10,7 @@ package( default_visibility = ["//tensorflow:internal"], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/python/estimator/BUILD b/tensorflow/python/estimator/BUILD index 10f1bef060..2b29cc8d28 100644 --- a/tensorflow/python/estimator/BUILD +++ b/tensorflow/python/estimator/BUILD @@ -2,10 +2,7 @@ package( default_visibility = [ "//tensorflow:internal", ], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/python/feature_column/BUILD b/tensorflow/python/feature_column/BUILD index 673111be9a..d2a595be76 100644 --- a/tensorflow/python/feature_column/BUILD +++ b/tensorflow/python/feature_column/BUILD @@ -1,11 +1,6 @@ package( - default_visibility = [ - "//tensorflow:internal", - ], - features = [ - "-layering_check", - "-parse_headers", - ], + default_visibility = ["//tensorflow:internal"], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/python/kernel_tests/BUILD b/tensorflow/python/kernel_tests/BUILD index f83de32a12..c2b884b52e 100644 --- a/tensorflow/python/kernel_tests/BUILD +++ b/tensorflow/python/kernel_tests/BUILD @@ -2,10 +2,7 @@ package( default_visibility = ["//tensorflow:internal"], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/python/kernel_tests/distributions/BUILD b/tensorflow/python/kernel_tests/distributions/BUILD index f124065e0d..89a7406bbf 100644 --- a/tensorflow/python/kernel_tests/distributions/BUILD +++ b/tensorflow/python/kernel_tests/distributions/BUILD @@ -2,10 +2,7 @@ package( default_visibility = ["//tensorflow:internal"], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) licenses(["notice"]) # Apache 2.0 diff --git a/tensorflow/python/ops/distributions/BUILD b/tensorflow/python/ops/distributions/BUILD index 833239eb5f..9aa14f6208 100644 --- a/tensorflow/python/ops/distributions/BUILD +++ b/tensorflow/python/ops/distributions/BUILD @@ -1,11 +1,6 @@ package( - default_visibility = [ - "//tensorflow:internal", - ], - features = [ - "-layering_check", - "-parse_headers", - ], + default_visibility = ["//tensorflow:internal"], + features = ["-parse_headers"], ) load("//tensorflow:tensorflow.bzl", "py_test") diff --git a/tensorflow/python/ops/losses/BUILD b/tensorflow/python/ops/losses/BUILD index 189b5e451b..578a778d76 100644 --- a/tensorflow/python/ops/losses/BUILD +++ b/tensorflow/python/ops/losses/BUILD @@ -3,10 +3,7 @@ package( "//engedu/ml/tf_from_scratch:__pkg__", "//tensorflow:internal", ], - features = [ - "-layering_check", - "-parse_headers", - ], + features = ["-parse_headers"], ) load("//tensorflow:tensorflow.bzl", "py_test") |