From cfda101ca149db2d3161ca6f6c7c18cd2b006fc5 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" <gardener@tensorflow.org> Date: Tue, 23 Apr 2019 11:49:35 -0700 Subject: [PATCH] n/a PiperOrigin-RevId: 244896090 --- tensorflow/examples/get_started/regression/BUILD | 1 + tensorflow/examples/how_tos/reading_data/BUILD | 2 ++ tensorflow/examples/learn/BUILD | 2 ++ .../examples/saved_model/integration_tests/BUILD | 2 ++ tensorflow/examples/speech_commands/BUILD | 5 +++++ tensorflow/examples/tutorials/layers/BUILD | 1 + tensorflow/examples/tutorials/word2vec/BUILD | 1 + tensorflow/lite/examples/python/BUILD | 1 + tensorflow/python/data/experimental/benchmarks/BUILD | 12 ++++++++++++ tensorflow/python/feature_column/BUILD | 1 + .../python/keras/mixed_precision/experimental/BUILD | 3 +++ tensorflow/python/profiler/BUILD | 1 + tensorflow/python/saved_model/model_utils/BUILD | 3 +++ tensorflow/python/tools/api/generator/BUILD | 3 +++ tensorflow/tools/common/BUILD | 2 ++ tensorflow/tools/test/BUILD | 2 ++ 16 files changed, 42 insertions(+) diff --git a/tensorflow/examples/get_started/regression/BUILD b/tensorflow/examples/get_started/regression/BUILD index 938e1faafea..cdef25ce495 100644 --- a/tensorflow/examples/get_started/regression/BUILD +++ b/tensorflow/examples/get_started/regression/BUILD @@ -12,6 +12,7 @@ py_test( "linear_regression_categorical.py", "test.py", ], + python_version = "PY2", srcs_version = "PY2AND3", tags = [ "manual", diff --git a/tensorflow/examples/how_tos/reading_data/BUILD b/tensorflow/examples/how_tos/reading_data/BUILD index e846b291467..b8a6ee1026a 100644 --- a/tensorflow/examples/how_tos/reading_data/BUILD +++ b/tensorflow/examples/how_tos/reading_data/BUILD @@ -10,6 +10,7 @@ exports_files(["LICENSE"]) py_binary( name = "convert_to_records", srcs = ["convert_to_records.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow:tensorflow_py", @@ -22,6 +23,7 @@ py_binary( srcs = [ "fully_connected_reader.py", ], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow:tensorflow_py", diff --git a/tensorflow/examples/learn/BUILD b/tensorflow/examples/learn/BUILD index a22d55e5af7..d98fe96f47a 100644 --- a/tensorflow/examples/learn/BUILD +++ b/tensorflow/examples/learn/BUILD @@ -12,6 +12,7 @@ exports_files(["LICENSE"]) py_binary( name = "iris_custom_decay_dnn", srcs = ["iris_custom_decay_dnn.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = ["//tensorflow:tensorflow_py"], ) @@ -19,6 +20,7 @@ py_binary( py_binary( name = "iris_custom_model", srcs = ["iris_custom_model.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = ["//tensorflow:tensorflow_py"], ) diff --git a/tensorflow/examples/saved_model/integration_tests/BUILD b/tensorflow/examples/saved_model/integration_tests/BUILD index 168241e41f9..c33345345f2 100644 --- a/tensorflow/examples/saved_model/integration_tests/BUILD +++ b/tensorflow/examples/saved_model/integration_tests/BUILD @@ -20,6 +20,7 @@ py_binary( "use_text_embedding_in_dataset.py", "use_text_rnn_model.py", ], + python_version = "PY2", visibility = ["//tensorflow:internal"], deps = [ ":mnist_util", @@ -52,6 +53,7 @@ py_test( data = [ ":run_script", ], + python_version = "PY2", shard_count = 4, srcs_version = "PY2AND3", tags = [ diff --git a/tensorflow/examples/speech_commands/BUILD b/tensorflow/examples/speech_commands/BUILD index e15497a3444..775c2543e3c 100644 --- a/tensorflow/examples/speech_commands/BUILD +++ b/tensorflow/examples/speech_commands/BUILD @@ -65,6 +65,7 @@ tf_py_test( py_binary( name = "train", srcs = ["train.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [":train_main_lib"], ) @@ -97,6 +98,7 @@ tf_py_test( py_binary( name = "freeze", srcs = ["freeze.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [":freeze_main_lib"], ) @@ -136,6 +138,7 @@ tf_py_test( py_binary( name = "wav_to_features", srcs = ["wav_to_features.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [":wav_to_features_main_lib"], ) @@ -175,6 +178,7 @@ tf_py_test( py_binary( name = "generate_streaming_test_wav", srcs = ["generate_streaming_test_wav.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [":generate_streaming_test_wav_main_lib"], ) @@ -229,6 +233,7 @@ tf_cc_binary( py_binary( name = "label_wav", srcs = ["label_wav.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [":label_wav_main_lib"], ) diff --git a/tensorflow/examples/tutorials/layers/BUILD b/tensorflow/examples/tutorials/layers/BUILD index aad78b18409..e4383d155b0 100644 --- a/tensorflow/examples/tutorials/layers/BUILD +++ b/tensorflow/examples/tutorials/layers/BUILD @@ -13,6 +13,7 @@ py_binary( srcs = [ "cnn_mnist.py", ], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow:tensorflow_py", diff --git a/tensorflow/examples/tutorials/word2vec/BUILD b/tensorflow/examples/tutorials/word2vec/BUILD index 2e19c038bdf..5293f437dce 100644 --- a/tensorflow/examples/tutorials/word2vec/BUILD +++ b/tensorflow/examples/tutorials/word2vec/BUILD @@ -12,6 +12,7 @@ py_binary( srcs = [ "word2vec_basic.py", ], + python_version = "PY2", srcs_version = "PY2AND3", tags = [ "no-internal-py3", diff --git a/tensorflow/lite/examples/python/BUILD b/tensorflow/lite/examples/python/BUILD index a606d1aa563..1ea487ac9fc 100644 --- a/tensorflow/lite/examples/python/BUILD +++ b/tensorflow/lite/examples/python/BUILD @@ -6,6 +6,7 @@ py_binary( name = "label_image", srcs = ["label_image.py"], main = "label_image.py", + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/lite/python:lite", diff --git a/tensorflow/python/data/experimental/benchmarks/BUILD b/tensorflow/python/data/experimental/benchmarks/BUILD index d6b7d216228..2fea4fd666d 100644 --- a/tensorflow/python/data/experimental/benchmarks/BUILD +++ b/tensorflow/python/data/experimental/benchmarks/BUILD @@ -10,6 +10,7 @@ load("//tensorflow:tensorflow.bzl", "py_test") py_test( name = "autotune_benchmark", srcs = ["autotune_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/python:client_testlib", @@ -25,6 +26,7 @@ py_test( py_test( name = "csv_dataset_benchmark", srcs = ["csv_dataset_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ @@ -42,6 +44,7 @@ py_test( py_test( name = "map_and_batch_benchmark", srcs = ["map_and_batch_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/core:protos_all_py", @@ -61,6 +64,7 @@ py_test( py_test( name = "map_defun_benchmark", srcs = ["map_defun_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", @@ -77,6 +81,7 @@ py_test( py_test( name = "map_vectorization_benchmark", srcs = ["map_vectorization_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/core:protos_all_py", @@ -97,6 +102,7 @@ py_test( name = "matching_files_benchmark", size = "small", srcs = ["matching_files_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", @@ -113,6 +119,7 @@ py_test( py_test( name = "choose_fastest_benchmark", srcs = ["choose_fastest_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/python:client_testlib", @@ -127,6 +134,7 @@ py_test( py_test( name = "choose_fastest_branch_benchmark", srcs = ["choose_fastest_branch_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/python:client_testlib", @@ -143,6 +151,7 @@ py_test( py_test( name = "optimize_benchmark", srcs = ["optimize_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/python:client_testlib", @@ -157,6 +166,7 @@ py_test( py_test( name = "parallel_interleave_benchmark", srcs = ["parallel_interleave_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/python:client_testlib", @@ -173,6 +183,7 @@ py_test( py_test( name = "rejection_resample_benchmark", srcs = ["rejection_resample_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ @@ -187,6 +198,7 @@ py_test( py_test( name = "unbatch_benchmark", srcs = ["unbatch_benchmark.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ "//tensorflow/python:array_ops", diff --git a/tensorflow/python/feature_column/BUILD b/tensorflow/python/feature_column/BUILD index ba323328b28..e5485b2b604 100644 --- a/tensorflow/python/feature_column/BUILD +++ b/tensorflow/python/feature_column/BUILD @@ -238,6 +238,7 @@ tf_py_test( py_test( name = "sequence_feature_column_integration_test", srcs = ["sequence_feature_column_integration_test.py"], + python_version = "PY2", srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ diff --git a/tensorflow/python/keras/mixed_precision/experimental/BUILD b/tensorflow/python/keras/mixed_precision/experimental/BUILD index 628944c2b05..076227b59d1 100644 --- a/tensorflow/python/keras/mixed_precision/experimental/BUILD +++ b/tensorflow/python/keras/mixed_precision/experimental/BUILD @@ -52,6 +52,7 @@ py_test( srcs = [ "policy_test.py", ], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ ":policy", @@ -78,6 +79,7 @@ py_test( name = "autocast_variable_test", size = "medium", srcs = ["autocast_variable_test.py"], + python_version = "PY2", deps = [ ":autocast_variable", "//tensorflow/python:client_testlib", @@ -128,6 +130,7 @@ py_test( name = "loss_scale_test", size = "medium", srcs = ["loss_scale_test.py"], + python_version = "PY2", deps = [ ":loss_scale", "//tensorflow/python:client_testlib", diff --git a/tensorflow/python/profiler/BUILD b/tensorflow/python/profiler/BUILD index fcab57c12c9..f2796e43989 100644 --- a/tensorflow/python/profiler/BUILD +++ b/tensorflow/python/profiler/BUILD @@ -147,6 +147,7 @@ py_test( size = "small", srcs = ["pprof_profiler_test.py"], main = "pprof_profiler_test.py", + python_version = "PY2", srcs_version = "PY2AND3", tags = ["no_pip"], # TODO(annarev): get it working with pip. deps = [ diff --git a/tensorflow/python/saved_model/model_utils/BUILD b/tensorflow/python/saved_model/model_utils/BUILD index 493574a225d..7c2a5d04b24 100644 --- a/tensorflow/python/saved_model/model_utils/BUILD +++ b/tensorflow/python/saved_model/model_utils/BUILD @@ -49,6 +49,7 @@ py_library( py_test( name = "export_output_test", srcs = ["export_output_test.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ ":export_output", @@ -83,6 +84,7 @@ py_library( py_test( name = "export_test", srcs = ["export_test.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ ":export_utils", @@ -109,6 +111,7 @@ py_library( py_test( name = "mode_keys_test", srcs = ["mode_keys_test.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ ":mode_keys", diff --git a/tensorflow/python/tools/api/generator/BUILD b/tensorflow/python/tools/api/generator/BUILD index 109c71b41d0..59f20d52a0c 100644 --- a/tensorflow/python/tools/api/generator/BUILD +++ b/tensorflow/python/tools/api/generator/BUILD @@ -43,6 +43,7 @@ py_test( "create_python_api.py", "create_python_api_test.py", ], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ ":doc_srcs", @@ -59,6 +60,7 @@ py_test( "--api_name=tensorflow", ] + KERAS_API_INIT_FILES + KERAS_API_INIT_FILES_V1 + TENSORFLOW_API_INIT_FILES + TENSORFLOW_API_INIT_FILES_V1, main = "doc_srcs_test.py", + python_version = "PY2", srcs_version = "PY2AND3", deps = [ ":doc_srcs", @@ -74,6 +76,7 @@ py_test( "api_init_files.bzl", "api_init_files_v1.bzl", ], + python_version = "PY2", srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ diff --git a/tensorflow/tools/common/BUILD b/tensorflow/tools/common/BUILD index 8c01d15a806..05fc81b0d97 100644 --- a/tensorflow/tools/common/BUILD +++ b/tensorflow/tools/common/BUILD @@ -21,6 +21,7 @@ py_library( py_test( name = "public_api_test", srcs = ["public_api_test.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ ":public_api", @@ -38,6 +39,7 @@ py_library( py_test( name = "traverse_test", srcs = ["traverse_test.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ ":test_module1", diff --git a/tensorflow/tools/test/BUILD b/tensorflow/tools/test/BUILD index ef12226ec00..0d26c0198ef 100644 --- a/tensorflow/tools/test/BUILD +++ b/tensorflow/tools/test/BUILD @@ -32,6 +32,7 @@ py_library( py_binary( name = "system_info", srcs = ["system_info.py"], + python_version = "PY2", srcs_version = "PY2AND3", deps = [ ":system_info_lib", @@ -55,6 +56,7 @@ py_library( py_binary( name = "run_and_gather_logs", srcs = ["run_and_gather_logs.py"], + python_version = "PY2", srcs_version = "PY2AND3", visibility = ["//visibility:public"], deps = [":run_and_gather_logs_main_lib"],