Skip to content

Commit

Permalink
Selected BUILD cleanup in tensorflow/contrib/...
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 159673079
  • Loading branch information
tensorflower-gardener committed Jun 21, 2017
1 parent c936bed commit 50d1c07
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 89 deletions.
10 changes: 7 additions & 3 deletions tensorflow/contrib/labeled_tensor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ py_library(
srcs = ["python/ops/_typecheck.py"],
srcs_version = "PY2AND3",
visibility = [":__subpackages__"],
deps = ["//tensorflow/python:util"],
)

py_library(
Expand All @@ -48,6 +49,7 @@ py_library(
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:math_ops",
"//third_party/py/numpy",
"@six_archive//:six",
],
)

Expand All @@ -56,8 +58,6 @@ py_library(
srcs = ["python/ops/test_util.py"],
srcs_version = "PY2AND3",
deps = [
":_typecheck",
":core",
"//tensorflow/python:client_testlib",
"//tensorflow/python:training",
],
Expand Down Expand Up @@ -92,6 +92,7 @@ py_library(
"//tensorflow/python:array_ops",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:parsing_ops",
"@six_archive//:six",
],
)

Expand All @@ -105,7 +106,6 @@ py_test(
deps = [
":core",
":io_ops",
":ops",
":test_util",
"//tensorflow/core:protos_all_py",
"//tensorflow/python:array_ops",
Expand Down Expand Up @@ -151,11 +151,13 @@ py_library(
":core",
"//tensorflow/python:array_ops",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:functional_ops",
"//tensorflow/python:math_ops",
"//tensorflow/python:numerics",
"//tensorflow/python:random_ops",
"//tensorflow/python:training",
"//third_party/py/numpy",
"@six_archive//:six",
],
)

Expand All @@ -175,6 +177,7 @@ py_test(
"//tensorflow/python:errors",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:math_ops",
"//tensorflow/python:string_ops",
"//third_party/py/numpy",
],
)
Expand All @@ -188,6 +191,7 @@ py_library(
":core",
":ops",
"//tensorflow/python:framework_for_generated_wrappers",
"@six_archive//:six",
],
)

Expand Down
45 changes: 12 additions & 33 deletions tensorflow/contrib/layers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ py_test(
"//tensorflow/python:client",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//third_party/py/numpy",
],
)
Expand All @@ -172,8 +170,6 @@ py_test(
"//tensorflow/python:client",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:platform_test",
"//tensorflow/python:variable_scope",
"//tensorflow/python:variables",
"//third_party/py/numpy",
Expand All @@ -189,12 +185,10 @@ py_test(
":layers_py",
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:init_ops",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:random_seed",
"//tensorflow/python:state_ops",
"//tensorflow/python:training",
"//tensorflow/python:variable_scope",
Expand All @@ -213,11 +207,8 @@ py_test(
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:nn_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:variables",
"//third_party/py/numpy",
],
)

Expand All @@ -229,11 +220,9 @@ py_test(
deps = [
":layers_py",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:parsing_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:sparse_tensor",
"//tensorflow/python:state_ops",
"//tensorflow/python:training",
"//tensorflow/python:variable_scope",
Expand All @@ -253,17 +242,16 @@ py_test(
"//tensorflow/core:protos_all_py",
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:data_flow_ops",
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:gradients",
"//tensorflow/python:init_ops",
"//tensorflow/python:lookup_ops",
"//tensorflow/python:partitioned_variables",
"//tensorflow/python:platform_test",
"//tensorflow/python:random_ops",
"//tensorflow/python:sparse_tensor",
"//tensorflow/python:variable_scope",
"//tensorflow/python:variables",
"//tensorflow/python/feature_column",
"//third_party/py/numpy",
],
)
Expand All @@ -278,10 +266,7 @@ py_test(
"//tensorflow/python:client",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:platform_test",
"//tensorflow/python:variables",
"//third_party/py/numpy",
],
)

Expand All @@ -294,11 +279,9 @@ py_test(
":layers_py",
"//tensorflow/python:client",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:platform_test",
"//tensorflow/python:sparse_ops",
"//tensorflow/python:sparse_tensor",
"//third_party/py/numpy",
],
)
Expand All @@ -311,15 +294,17 @@ py_test(
srcs_version = "PY2AND3",
deps = [
":layers_py",
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:errors",
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:gradient_checker",
"//tensorflow/python:init_ops",
"//tensorflow/python:math_ops",
"//tensorflow/python:partitioned_variables",
"//tensorflow/python:platform_test",
"//tensorflow/python:random_seed",
"//tensorflow/python:sparse_tensor",
"//tensorflow/python:util",
"//third_party/py/numpy",
],
)
Expand All @@ -334,8 +319,6 @@ py_test(
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:platform_test",
"//tensorflow/python:variables",
"//third_party/py/numpy",
],
Expand All @@ -351,8 +334,7 @@ py_test(
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:platform_test",
"//tensorflow/python:sparse_tensor",
"//third_party/py/numpy",
],
)
Expand All @@ -365,12 +347,9 @@ py_test(
deps = [
":layers_py",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:init_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:variable_scope",
"//tensorflow/python:variables",
"//third_party/py/numpy",
],
)

Expand Down
9 changes: 1 addition & 8 deletions tensorflow/contrib/learn/python/learn/datasets/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ py_library(
"//tensorflow/contrib/framework:framework_py",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:platform",
"//tensorflow/python:random_seed",
"//third_party/py/numpy",
],
)
Expand All @@ -39,7 +40,6 @@ py_binary(
srcs_version = "PY2AND3",
deps = [
":datasets",
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:platform",
],
)
Expand All @@ -63,9 +63,7 @@ py_test(
srcs_version = "PY2AND3",
deps = [
":datasets",
"//tensorflow/contrib/learn",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_test_lib",
],
)

Expand All @@ -76,9 +74,7 @@ py_test(
srcs_version = "PY2AND3",
deps = [
":datasets",
"//tensorflow/contrib/learn",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_test_lib",
],
)

Expand All @@ -89,10 +85,7 @@ py_test(
srcs_version = "PY2AND3",
deps = [
":datasets",
"//tensorflow:tensorflow_py",
"//tensorflow/contrib/learn",
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_test_lib",
"//third_party/py/numpy",
"@six_archive//:six",
],
Expand Down
6 changes: 5 additions & 1 deletion tensorflow/contrib/linalg/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,16 @@ py_library(
"//tensorflow/python:array_ops",
"//tensorflow/python:check_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:common_shapes",
"//tensorflow/python:control_flow_ops",
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:linalg_ops",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform",
"//tensorflow/python:random_ops",
"//tensorflow/python:random_seed",
"//tensorflow/python:tensor_util",
"//tensorflow/python:util",
"//third_party/py/numpy",
"@six_archive//:six",
],
Expand Down
10 changes: 2 additions & 8 deletions tensorflow/contrib/lookup/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,9 @@ py_library(
],
srcs_version = "PY2AND3",
deps = [
"//tensorflow/python:array_ops",
"//tensorflow/python:constant_op",
"//tensorflow/python:control_flow_ops",
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:lookup_ops",
"//tensorflow/python:lookup_ops_gen",
"//tensorflow/python:math_ops",
"//tensorflow/python:string_ops",
"//tensorflow/python:training",
"//tensorflow/python:util",
],
Expand All @@ -42,11 +37,10 @@ py_test(
"//tensorflow/python:client",
"//tensorflow/python:client_testlib",
"//tensorflow/python:errors",
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:lookup_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:sparse_tensor",
"//tensorflow/python:training",
"//tensorflow/python:variables",
"//third_party/py/numpy",
Expand Down
5 changes: 2 additions & 3 deletions tensorflow/contrib/losses/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ py_test(
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
"//tensorflow/python:errors",
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:framework_test_lib",
"//tensorflow/python:init_ops",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:random_ops",
"//tensorflow/python:random_seed",
"//tensorflow/python:training",
"//tensorflow/python:variable_scope",
"//tensorflow/python:variables",
Expand Down
1 change: 1 addition & 0 deletions tensorflow/contrib/ndlstm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ py_library(
"//tensorflow/python:platform",
"//tensorflow/python:random_ops",
"//tensorflow/python:rnn",
"//tensorflow/python:rnn_cell",
"//tensorflow/python:sparse_ops",
"//tensorflow/python:training",
"//tensorflow/python:variable_scope",
Expand Down
Loading

0 comments on commit 50d1c07

Please sign in to comment.