diff --git a/tensorflow/python/keras/BUILD b/tensorflow/python/keras/BUILD index 177258b0ce5..612a3855ff9 100755 --- a/tensorflow/python/keras/BUILD +++ b/tensorflow/python/keras/BUILD @@ -648,83 +648,3 @@ tf_py_test( "@absl_py//absl/testing:parameterized", ], ) - -py_library( - name = "expect_absl_installed", - # This is a dummy rule used as a absl dependency in open-source. - # We expect absl to already be installed on the system, e.g. via - # `pip install absl` - visibility = ["//visibility:public"], -) - -py_library( - name = "expect_h5py_installed", - # This is a dummy rule used as a h5 dependency in open-source. - # We expect h5py to already be installed on the system, e.g. via - # `pip install h5py' - visibility = ["//visibility:public"], -) - -py_library( - name = "expect_keras_preprocessing_installed", - # This is a dummy rule used as a keras_preprocessing dependency in open-source. - # We expect keras_preprocessing to already be installed on the system, e.g. via - # `pip install keras_preprocessing` - visibility = ["//visibility:public"], -) - -py_library( - name = "expect_numpy_installed", - # This is a dummy rule used as a numpy dependency in open-source. - # We expect numpy to already be installed on the system, e.g. via - # `pip install numpy` - visibility = ["//visibility:public"], -) - -py_library( - name = "expect_pandas_installed", - # This is a dummy rule used as a pandas dependency in open-source. - # We expect pandas to already be installed on the system, e.g. via - # `pip install pandas' - visibility = ["//visibility:public"], -) - -py_library( - name = "expect_pydot_installed", - # This is a dummy rule used as a pydot dependency in open-source. - # We expect pydot to already be installed on the system, e.g. via - # `pip install pydot' - visibility = ["//visibility:public"], -) - -py_library( - name = "expect_scipy_installed", - # This is a dummy rule used as a scipy dependency in open-source. - # We expect scipy to already be installed on the system, e.g. via - # `pip install scipy' - visibility = ["//visibility:public"], -) - -py_library( - name = "expect_six_installed", - # This is a dummy rule used as a six dependency in open-source. - # We expect six to already be installed on the system, e.g. via - # `pip install six` - visibility = ["//visibility:public"], -) - -py_library( - name = "expect_tensorflow_installed", - # This is a dummy rule used as a tensorflow dependency in open-source. - # We expect tensorflow to already be installed on the system, e.g. via - # `pip install tensorflow` or `pip install tensorflow_gpu` - visibility = ["//visibility:public"], -) - -py_library( - name = "expect_yaml_installed", - # This is a dummy rule used as a yaml dependency in open-source. - # We expect yaml to already be installed on the system, e.g. via - # `pip install yaml` - visibility = ["//visibility:public"], -) diff --git a/tensorflow/python/keras/benchmarks/layer_benchmarks/BUILD b/tensorflow/python/keras/benchmarks/layer_benchmarks/BUILD index 7c3b55c02bd..4161081e192 100644 --- a/tensorflow/python/keras/benchmarks/layer_benchmarks/BUILD +++ b/tensorflow/python/keras/benchmarks/layer_benchmarks/BUILD @@ -40,13 +40,13 @@ BECHMARK_TAGS = [ py_library( name = "run_xprof", srcs = ["run_xprof.py"], - visibility = ["//tensorflow:internal"], + visibility = ["//tensorflow/python/keras:__subpackages__"], ) py_library( name = "layer_benchmarks_test_base", srcs = ["layer_benchmarks_test_base.py"], - visibility = ["//tensorflow:internal"], + visibility = ["//tensorflow/python/keras:__subpackages__"], deps = [ ":run_xprof", "//tensorflow:tensorflow_py", diff --git a/tensorflow/python/keras/integration_test/BUILD b/tensorflow/python/keras/integration_test/BUILD index f9a98626832..b27f2f8a817 100644 --- a/tensorflow/python/keras/integration_test/BUILD +++ b/tensorflow/python/keras/integration_test/BUILD @@ -17,8 +17,8 @@ tf_py_test( srcs = ["forwardprop_test.py"], python_version = "PY3", deps = [ - "//tensorflow:tensorflow_py", - "//tensorflow/python:extra_py_tests_deps", + "//tensorflow:tensorflow_py_no_contrib", + "@absl_py//absl/testing:parameterized", ], ) @@ -27,8 +27,7 @@ tf_py_test( srcs = ["function_test.py"], python_version = "PY3", deps = [ - "//tensorflow:tensorflow_py", - "//tensorflow/python:extra_py_tests_deps", + "//tensorflow:tensorflow_py_no_contrib", ], ) @@ -37,8 +36,7 @@ tf_py_test( srcs = ["gradients_test.py"], python_version = "PY3", deps = [ - "//tensorflow:tensorflow_py", - "//tensorflow/python:extra_py_tests_deps", + "//tensorflow:tensorflow_py_no_contrib", ], ) @@ -47,8 +45,8 @@ cuda_py_test( srcs = ["saved_model_test.py"], python_version = "PY3", deps = [ - "//tensorflow:tensorflow_py", - "//tensorflow/python:extra_py_tests_deps", + "//tensorflow:tensorflow_py_no_contrib", + "@absl_py//absl/testing:parameterized", ], ) @@ -57,8 +55,7 @@ tf_py_test( srcs = ["legacy_rnn_test.py"], python_version = "PY3", deps = [ - "//tensorflow:tensorflow_py", - "//tensorflow/python:extra_py_tests_deps", + "//tensorflow:tensorflow_py_no_contrib", ], ) @@ -66,8 +63,7 @@ tf_py_test( name = "module_test", srcs = ["module_test.py"], deps = [ - "//tensorflow:tensorflow_py", - "//tensorflow/python:extra_py_tests_deps", + "//tensorflow:tensorflow_py_no_contrib", ], ) @@ -76,8 +72,7 @@ tf_py_test( srcs = ["vectorized_map_test.py"], python_version = "PY3", deps = [ - "//tensorflow:tensorflow_py", - "//tensorflow/python:extra_py_tests_deps", + "//tensorflow:tensorflow_py_no_contrib", ], ) @@ -87,8 +82,7 @@ cuda_py_test( python_version = "PY3", tags = ["no_rocm"], deps = [ - "//tensorflow:tensorflow_py", - "//tensorflow/python:extra_py_tests_deps", + "//tensorflow:tensorflow_py_no_contrib", ], ) @@ -100,8 +94,8 @@ tpu_py_test( python_version = "PY3", tags = ["no_oss"], deps = [ - "//tensorflow:tensorflow_py", - "//tensorflow/python:extra_py_tests_deps", + "//tensorflow:tensorflow_py_no_contrib", + "@absl_py//absl/testing:parameterized", ], ) @@ -117,6 +111,7 @@ tf_py_test( "notsan", # TODO(b/156029134) ], deps = [ - "//tensorflow:tensorflow_py", + "//tensorflow:tensorflow_py_no_contrib", + "@absl_py//absl/testing:parameterized", ], ) diff --git a/tensorflow/python/keras/tests/BUILD b/tensorflow/python/keras/tests/BUILD index e7db6c45e04..fe7b7f0b52b 100644 --- a/tensorflow/python/keras/tests/BUILD +++ b/tensorflow/python/keras/tests/BUILD @@ -390,7 +390,6 @@ tf_py_test( python_version = "PY3", tags = ["notsan"], # b/74395663 deps = [ - "//tensorflow/compiler/tests:xla_test", "//tensorflow/python:checkpoint_management", "//tensorflow/python:client_testlib", "//tensorflow/python:constant_op",