diff --git a/tensorflow/core/platform/BUILD b/tensorflow/core/platform/BUILD index f725d1d989b..0a324f31023 100644 --- a/tensorflow/core/platform/BUILD +++ b/tensorflow/core/platform/BUILD @@ -389,8 +389,6 @@ cc_library( name = "mutex", compatible_with = get_compatible_with_portable(), textual_hdrs = ["mutex.h"], - # TODO(b/161569340): Short-term fix. Remove this visibility rule. - visibility = ["//tensorflow:__subpackages__"], deps = tf_platform_deps("mutex"), ) @@ -629,10 +627,6 @@ filegroup( srcs = [ "stacktrace_handler.h", ], - visibility = [ - "//tensorflow/core:__pkg__", - "//tensorflow/python:__pkg__", - ], ) cc_library( @@ -709,7 +703,6 @@ cc_library( cc_library( name = "strong_hash", hdrs = ["strong_hash.h"], - visibility = ["//visibility:public"], deps = [ ":platform", ":types", @@ -810,11 +803,6 @@ cc_library( name = "types", hdrs = ["types.h"], compatible_with = get_compatible_with_portable(), - # TODO(b/161569340): Short-term fix. Remove this visibility rule. - visibility = [ - "//tensorflow:__subpackages__", - "//tensorflow_text:__subpackages__", - ], deps = [ ":platform", ":bfloat16", @@ -947,7 +935,6 @@ tf_cuda_library( "stream_executor.h", ], features = ["-parse_headers"], - visibility = ["//tensorflow/core:__pkg__"], deps = [ "//tensorflow/core/platform/default/build_config:stream_executor", ], @@ -962,7 +949,6 @@ cc_library( "stream_executor_no_cuda.h", ], features = ["-parse_headers"], - visibility = ["//tensorflow/core:__pkg__"], deps = [ "//tensorflow/core/platform/default/build_config:stream_executor_no_cuda", ], @@ -977,7 +963,6 @@ cc_library( "//tensorflow:windows": [], "//conditions:default": ["-lm"], }), - visibility = ["//tensorflow/core:__pkg__"], deps = [ ":platform", ":stacktrace_handler",