From d710569548a6e50e373f4ced126fb336c754a3c0 Mon Sep 17 00:00:00 2001 From: Hye Soo Yang Date: Tue, 10 Dec 2019 16:26:53 -0800 Subject: [PATCH] PY3 migration - Set py targets to "PY3" in third_party/tensorflow/... PiperOrigin-RevId: 284874116 Change-Id: I65a79643242b127f014f5eb5f175ac2b28602ce7 --- tensorflow/examples/label_image/BUILD | 2 +- tensorflow/examples/speech_commands/BUILD | 16 ++++++++-------- tensorflow/examples/tf2_showcase/BUILD | 2 +- tensorflow/examples/tutorials/word2vec/BUILD | 2 +- .../examples/experimental_new_converter/BUILD | 2 +- .../evaluation/tasks/coco_object_detection/BUILD | 2 +- .../python/distribute/cluster_resolver/BUILD | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tensorflow/examples/label_image/BUILD b/tensorflow/examples/label_image/BUILD index efa637db03f..162a44ac109 100644 --- a/tensorflow/examples/label_image/BUILD +++ b/tensorflow/examples/label_image/BUILD @@ -56,7 +56,7 @@ py_binary( name = "label_image_py", srcs = ["label_image.py"], main = "label_image.py", - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", deps = [ "//tensorflow:tensorflow_py", diff --git a/tensorflow/examples/speech_commands/BUILD b/tensorflow/examples/speech_commands/BUILD index 905e251864b..dbe5b2841ee 100644 --- a/tensorflow/examples/speech_commands/BUILD +++ b/tensorflow/examples/speech_commands/BUILD @@ -15,7 +15,7 @@ py_binary( name = "accuracy_utils_py", srcs = ["accuracy_utils.py"], main = "accuracy_utils.py", - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", deps = [ "//tensorflow:tensorflow_py", @@ -28,7 +28,7 @@ py_binary( name = "recognize_commands_py", srcs = ["recognize_commands.py"], main = "recognize_commands.py", - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", deps = [ "//tensorflow:tensorflow_py", @@ -41,7 +41,7 @@ py_binary( name = "test_streaming_accuracy_py", srcs = ["test_streaming_accuracy.py"], main = "test_streaming_accuracy.py", - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", deps = [ ":accuracy_utils_py", @@ -110,7 +110,7 @@ tf_py_test( py_binary( name = "train", srcs = ["train.py"], - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", deps = [":train_main_lib"], ) @@ -147,7 +147,7 @@ tf_py_test( py_binary( name = "freeze", srcs = ["freeze.py"], - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", deps = [":freeze_main_lib"], ) @@ -194,7 +194,7 @@ tf_py_test( py_binary( name = "wav_to_features", srcs = ["wav_to_features.py"], - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", deps = [":wav_to_features_main_lib"], ) @@ -238,7 +238,7 @@ tf_py_test( py_binary( name = "generate_streaming_test_wav", srcs = ["generate_streaming_test_wav.py"], - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", deps = [":generate_streaming_test_wav_main_lib"], ) @@ -297,7 +297,7 @@ tf_cc_binary( py_binary( name = "label_wav", srcs = ["label_wav.py"], - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", deps = [":label_wav_main_lib"], ) diff --git a/tensorflow/examples/tf2_showcase/BUILD b/tensorflow/examples/tf2_showcase/BUILD index 5e612ae2f6f..afa32d1be25 100644 --- a/tensorflow/examples/tf2_showcase/BUILD +++ b/tensorflow/examples/tf2_showcase/BUILD @@ -18,7 +18,7 @@ test_suite( py_test( name = "mnist", srcs = ["mnist.py"], - python_version = "PY2", + python_version = "PY3", tags = [ "manual", "no_oss", diff --git a/tensorflow/examples/tutorials/word2vec/BUILD b/tensorflow/examples/tutorials/word2vec/BUILD index c2dd1acf8c2..0a885303919 100644 --- a/tensorflow/examples/tutorials/word2vec/BUILD +++ b/tensorflow/examples/tutorials/word2vec/BUILD @@ -13,7 +13,7 @@ py_binary( srcs = [ "word2vec_basic.py", ], - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", tags = [ "no-internal-py3", diff --git a/tensorflow/lite/examples/experimental_new_converter/BUILD b/tensorflow/lite/examples/experimental_new_converter/BUILD index f5c225e7718..1c6fc7b52aa 100644 --- a/tensorflow/lite/examples/experimental_new_converter/BUILD +++ b/tensorflow/lite/examples/experimental_new_converter/BUILD @@ -6,6 +6,6 @@ package( py_binary( name = "stack_trace_example", srcs = ["stack_trace_example.py"], - python_version = "PY2", + python_version = "PY3", deps = ["//tensorflow:tensorflow_py"], ) diff --git a/tensorflow/lite/tools/evaluation/tasks/coco_object_detection/BUILD b/tensorflow/lite/tools/evaluation/tasks/coco_object_detection/BUILD index 84656b78d49..d605b744690 100644 --- a/tensorflow/lite/tools/evaluation/tasks/coco_object_detection/BUILD +++ b/tensorflow/lite/tools/evaluation/tasks/coco_object_detection/BUILD @@ -10,7 +10,7 @@ load("//tensorflow/lite:build_def.bzl", "tflite_copts", "tflite_linkopts") py_binary( name = "preprocess_coco_minival", srcs = ["preprocess_coco_minival.py"], - python_version = "PY2", + python_version = "PY3", srcs_version = "PY2AND3", visibility = ["//visibility:public"], deps = ["//tensorflow/lite/tools/evaluation/proto:evaluation_stages_py"], diff --git a/tensorflow/python/distribute/cluster_resolver/BUILD b/tensorflow/python/distribute/cluster_resolver/BUILD index 8793543b283..03a8869f497 100644 --- a/tensorflow/python/distribute/cluster_resolver/BUILD +++ b/tensorflow/python/distribute/cluster_resolver/BUILD @@ -101,7 +101,7 @@ tf_py_test( ], grpc_enabled = True, main = "cloud_tpu_client_test.py", - python_version = "PY2", + python_version = "PY3", ) py_library( @@ -211,7 +211,7 @@ tf_py_test( ], grpc_enabled = True, main = "tpu_cluster_resolver_test.py", - python_version = "PY2", + python_version = "PY3", ) tf_py_test(