PY3 migration - Set py targets to "PY3" in third_party/tensorflow/...
PiperOrigin-RevId: 284874116 Change-Id: I65a79643242b127f014f5eb5f175ac2b28602ce7
This commit is contained in:
parent
74229d4736
commit
d710569548
@ -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",
|
||||
|
@ -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"],
|
||||
)
|
||||
|
@ -18,7 +18,7 @@ test_suite(
|
||||
py_test(
|
||||
name = "mnist",
|
||||
srcs = ["mnist.py"],
|
||||
python_version = "PY2",
|
||||
python_version = "PY3",
|
||||
tags = [
|
||||
"manual",
|
||||
"no_oss",
|
||||
|
@ -13,7 +13,7 @@ py_binary(
|
||||
srcs = [
|
||||
"word2vec_basic.py",
|
||||
],
|
||||
python_version = "PY2",
|
||||
python_version = "PY3",
|
||||
srcs_version = "PY2AND3",
|
||||
tags = [
|
||||
"no-internal-py3",
|
||||
|
@ -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"],
|
||||
)
|
||||
|
@ -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"],
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user