Skip to content

Commit

Permalink
Add TensorFlow __init__.py back to py_binary targets
Browse files Browse the repository at this point in the history
Change: 143837911
  • Loading branch information
jart authored and tensorflower-gardener committed Jan 7, 2017
1 parent 1095b9b commit e7ce847
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 11 deletions.
8 changes: 4 additions & 4 deletions tensorflow/contrib/learn/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -1037,12 +1037,12 @@ py_test(

py_binary(
name = "inspect_checkpoint",
srcs = [
"python/learn/utils/inspect_checkpoint.py",
],
srcs = ["python/learn/utils/inspect_checkpoint.py"],
srcs_version = "PY2AND3",
deps = [
"//tensorflow:tensorflow_py",
"//tensorflow/contrib/framework:framework_py",
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:platform",
],
)

Expand Down
7 changes: 3 additions & 4 deletions tensorflow/contrib/learn/python/learn/datasets/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@ py_library(

py_binary(
name = "produce_small_datasets",
srcs = [
"produce_small_datasets.py",
],
srcs = ["produce_small_datasets.py"],
srcs_version = "PY2AND3",
deps = [
":datasets",
"//tensorflow:tensorflow_py",
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:platform",
],
)

Expand Down
11 changes: 10 additions & 1 deletion tensorflow/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,16 @@ py_library(
name = "python",
srcs = ["__init__.py"],
srcs_version = "PY2AND3",
visibility = ["//tensorflow:__pkg__"],
visibility = [
"//tensorflow:__pkg__",
"//tensorflow/compiler/aot/tests:__pkg__", # TODO(b/34059704): remove when fixed
"//tensorflow/contrib/learn:__pkg__", # TODO(b/34059704): remove when fixed
"//tensorflow/contrib/learn/python/learn/datasets:__pkg__", # TODO(b/34059704): remove when fixed
"//tensorflow/python/debug:__pkg__", # TODO(b/34059704): remove when fixed
"//tensorflow/python/tools:__pkg__", # TODO(b/34059704): remove when fixed
"//tensorflow/tensorboard/scripts:__pkg__", # TODO(b/34059704): remove when fixed
"//tensorflow/tools/quantization:__pkg__", # TODO(b/34059704): remove when fixed
],
deps = [
":array_ops",
":check_ops",
Expand Down
1 change: 1 addition & 0 deletions tensorflow/python/debug/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ py_binary(
deps = [
":analyzer_cli",
":debug_data",
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:platform",
],
)
Expand Down
9 changes: 7 additions & 2 deletions tensorflow/python/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ py_binary(
srcs = ["freeze_graph.py"],
srcs_version = "PY2AND3",
deps = [
"//tensorflow:tensorflow_py",
"//tensorflow/core:protos_all_py",
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:client",
"//tensorflow/python:framework",
"//tensorflow/python:platform",
Expand Down Expand Up @@ -55,6 +55,7 @@ py_binary(
srcs = ["inspect_checkpoint.py"],
srcs_version = "PY2AND3",
deps = [
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:platform",
"//tensorflow/python:pywrap_tensorflow",
],
Expand Down Expand Up @@ -123,6 +124,7 @@ py_binary(
deps = [
":optimize_for_inference_lib",
"//tensorflow/core:protos_all_py",
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:framework",
"//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:platform",
Expand Down Expand Up @@ -155,7 +157,10 @@ py_binary(
srcs = ["print_selective_registration_header.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = ["//tensorflow/python:platform"],
deps = [
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:platform",
],
)

py_test(
Expand Down
1 change: 1 addition & 0 deletions tensorflow/tensorboard/scripts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ py_binary(
srcs_version = "PY2AND3",
deps = [
"//tensorflow/core:protos_all_py",
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:array_ops",
"//tensorflow/python:client",
"//tensorflow/python:logging_ops",
Expand Down
1 change: 1 addition & 0 deletions tensorflow/tools/quantization/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ py_binary(
srcs_version = "PY2AND3",
deps = [
"//tensorflow/core:protos_all_py",
"//tensorflow/python", # TODO(b/34059704): remove when fixed
"//tensorflow/python:array_ops",
"//tensorflow/python:client",
"//tensorflow/python:framework",
Expand Down

0 comments on commit e7ce847

Please sign in to comment.