PiperOrigin-RevId: 244896090
This commit is contained in:
A. Unique TensorFlower 2019-04-23 11:49:35 -07:00 committed by TensorFlower Gardener
parent 3bd15c9e72
commit cfda101ca1
16 changed files with 42 additions and 0 deletions
tensorflow
examples
get_started/regression
how_tos/reading_data
learn
saved_model/integration_tests
speech_commands
tutorials
layers
word2vec
lite/examples/python
python
data/experimental/benchmarks
feature_column
keras/mixed_precision/experimental
profiler
saved_model/model_utils
tools/api/generator
tools
common
test

View File

@ -12,6 +12,7 @@ py_test(
"linear_regression_categorical.py", "linear_regression_categorical.py",
"test.py", "test.py",
], ],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
tags = [ tags = [
"manual", "manual",

View File

@ -10,6 +10,7 @@ exports_files(["LICENSE"])
py_binary( py_binary(
name = "convert_to_records", name = "convert_to_records",
srcs = ["convert_to_records.py"], srcs = ["convert_to_records.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow:tensorflow_py", "//tensorflow:tensorflow_py",
@ -22,6 +23,7 @@ py_binary(
srcs = [ srcs = [
"fully_connected_reader.py", "fully_connected_reader.py",
], ],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow:tensorflow_py", "//tensorflow:tensorflow_py",

View File

@ -12,6 +12,7 @@ exports_files(["LICENSE"])
py_binary( py_binary(
name = "iris_custom_decay_dnn", name = "iris_custom_decay_dnn",
srcs = ["iris_custom_decay_dnn.py"], srcs = ["iris_custom_decay_dnn.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = ["//tensorflow:tensorflow_py"], deps = ["//tensorflow:tensorflow_py"],
) )
@ -19,6 +20,7 @@ py_binary(
py_binary( py_binary(
name = "iris_custom_model", name = "iris_custom_model",
srcs = ["iris_custom_model.py"], srcs = ["iris_custom_model.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = ["//tensorflow:tensorflow_py"], deps = ["//tensorflow:tensorflow_py"],
) )

View File

@ -20,6 +20,7 @@ py_binary(
"use_text_embedding_in_dataset.py", "use_text_embedding_in_dataset.py",
"use_text_rnn_model.py", "use_text_rnn_model.py",
], ],
python_version = "PY2",
visibility = ["//tensorflow:internal"], visibility = ["//tensorflow:internal"],
deps = [ deps = [
":mnist_util", ":mnist_util",
@ -52,6 +53,7 @@ py_test(
data = [ data = [
":run_script", ":run_script",
], ],
python_version = "PY2",
shard_count = 4, shard_count = 4,
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
tags = [ tags = [

View File

@ -65,6 +65,7 @@ tf_py_test(
py_binary( py_binary(
name = "train", name = "train",
srcs = ["train.py"], srcs = ["train.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [":train_main_lib"], deps = [":train_main_lib"],
) )
@ -97,6 +98,7 @@ tf_py_test(
py_binary( py_binary(
name = "freeze", name = "freeze",
srcs = ["freeze.py"], srcs = ["freeze.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [":freeze_main_lib"], deps = [":freeze_main_lib"],
) )
@ -136,6 +138,7 @@ tf_py_test(
py_binary( py_binary(
name = "wav_to_features", name = "wav_to_features",
srcs = ["wav_to_features.py"], srcs = ["wav_to_features.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [":wav_to_features_main_lib"], deps = [":wav_to_features_main_lib"],
) )
@ -175,6 +178,7 @@ tf_py_test(
py_binary( py_binary(
name = "generate_streaming_test_wav", name = "generate_streaming_test_wav",
srcs = ["generate_streaming_test_wav.py"], srcs = ["generate_streaming_test_wav.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [":generate_streaming_test_wav_main_lib"], deps = [":generate_streaming_test_wav_main_lib"],
) )
@ -229,6 +233,7 @@ tf_cc_binary(
py_binary( py_binary(
name = "label_wav", name = "label_wav",
srcs = ["label_wav.py"], srcs = ["label_wav.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [":label_wav_main_lib"], deps = [":label_wav_main_lib"],
) )

View File

@ -13,6 +13,7 @@ py_binary(
srcs = [ srcs = [
"cnn_mnist.py", "cnn_mnist.py",
], ],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow:tensorflow_py", "//tensorflow:tensorflow_py",

View File

@ -12,6 +12,7 @@ py_binary(
srcs = [ srcs = [
"word2vec_basic.py", "word2vec_basic.py",
], ],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
tags = [ tags = [
"no-internal-py3", "no-internal-py3",

View File

@ -6,6 +6,7 @@ py_binary(
name = "label_image", name = "label_image",
srcs = ["label_image.py"], srcs = ["label_image.py"],
main = "label_image.py", main = "label_image.py",
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/lite/python:lite", "//tensorflow/lite/python:lite",

View File

@ -10,6 +10,7 @@ load("//tensorflow:tensorflow.bzl", "py_test")
py_test( py_test(
name = "autotune_benchmark", name = "autotune_benchmark",
srcs = ["autotune_benchmark.py"], srcs = ["autotune_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/python:client_testlib", "//tensorflow/python:client_testlib",
@ -25,6 +26,7 @@ py_test(
py_test( py_test(
name = "csv_dataset_benchmark", name = "csv_dataset_benchmark",
srcs = ["csv_dataset_benchmark.py"], srcs = ["csv_dataset_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
tags = ["no_pip"], tags = ["no_pip"],
deps = [ deps = [
@ -42,6 +44,7 @@ py_test(
py_test( py_test(
name = "map_and_batch_benchmark", name = "map_and_batch_benchmark",
srcs = ["map_and_batch_benchmark.py"], srcs = ["map_and_batch_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/core:protos_all_py", "//tensorflow/core:protos_all_py",
@ -61,6 +64,7 @@ py_test(
py_test( py_test(
name = "map_defun_benchmark", name = "map_defun_benchmark",
srcs = ["map_defun_benchmark.py"], srcs = ["map_defun_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/python:array_ops", "//tensorflow/python:array_ops",
@ -77,6 +81,7 @@ py_test(
py_test( py_test(
name = "map_vectorization_benchmark", name = "map_vectorization_benchmark",
srcs = ["map_vectorization_benchmark.py"], srcs = ["map_vectorization_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/core:protos_all_py", "//tensorflow/core:protos_all_py",
@ -97,6 +102,7 @@ py_test(
name = "matching_files_benchmark", name = "matching_files_benchmark",
size = "small", size = "small",
srcs = ["matching_files_benchmark.py"], srcs = ["matching_files_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/python:array_ops", "//tensorflow/python:array_ops",
@ -113,6 +119,7 @@ py_test(
py_test( py_test(
name = "choose_fastest_benchmark", name = "choose_fastest_benchmark",
srcs = ["choose_fastest_benchmark.py"], srcs = ["choose_fastest_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/python:client_testlib", "//tensorflow/python:client_testlib",
@ -127,6 +134,7 @@ py_test(
py_test( py_test(
name = "choose_fastest_branch_benchmark", name = "choose_fastest_branch_benchmark",
srcs = ["choose_fastest_branch_benchmark.py"], srcs = ["choose_fastest_branch_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/python:client_testlib", "//tensorflow/python:client_testlib",
@ -143,6 +151,7 @@ py_test(
py_test( py_test(
name = "optimize_benchmark", name = "optimize_benchmark",
srcs = ["optimize_benchmark.py"], srcs = ["optimize_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/python:client_testlib", "//tensorflow/python:client_testlib",
@ -157,6 +166,7 @@ py_test(
py_test( py_test(
name = "parallel_interleave_benchmark", name = "parallel_interleave_benchmark",
srcs = ["parallel_interleave_benchmark.py"], srcs = ["parallel_interleave_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/python:client_testlib", "//tensorflow/python:client_testlib",
@ -173,6 +183,7 @@ py_test(
py_test( py_test(
name = "rejection_resample_benchmark", name = "rejection_resample_benchmark",
srcs = ["rejection_resample_benchmark.py"], srcs = ["rejection_resample_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
tags = ["no_pip"], tags = ["no_pip"],
deps = [ deps = [
@ -187,6 +198,7 @@ py_test(
py_test( py_test(
name = "unbatch_benchmark", name = "unbatch_benchmark",
srcs = ["unbatch_benchmark.py"], srcs = ["unbatch_benchmark.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
"//tensorflow/python:array_ops", "//tensorflow/python:array_ops",

View File

@ -238,6 +238,7 @@ tf_py_test(
py_test( py_test(
name = "sequence_feature_column_integration_test", name = "sequence_feature_column_integration_test",
srcs = ["sequence_feature_column_integration_test.py"], srcs = ["sequence_feature_column_integration_test.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
tags = ["no_pip"], tags = ["no_pip"],
deps = [ deps = [

View File

@ -52,6 +52,7 @@ py_test(
srcs = [ srcs = [
"policy_test.py", "policy_test.py",
], ],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
":policy", ":policy",
@ -78,6 +79,7 @@ py_test(
name = "autocast_variable_test", name = "autocast_variable_test",
size = "medium", size = "medium",
srcs = ["autocast_variable_test.py"], srcs = ["autocast_variable_test.py"],
python_version = "PY2",
deps = [ deps = [
":autocast_variable", ":autocast_variable",
"//tensorflow/python:client_testlib", "//tensorflow/python:client_testlib",
@ -128,6 +130,7 @@ py_test(
name = "loss_scale_test", name = "loss_scale_test",
size = "medium", size = "medium",
srcs = ["loss_scale_test.py"], srcs = ["loss_scale_test.py"],
python_version = "PY2",
deps = [ deps = [
":loss_scale", ":loss_scale",
"//tensorflow/python:client_testlib", "//tensorflow/python:client_testlib",

View File

@ -147,6 +147,7 @@ py_test(
size = "small", size = "small",
srcs = ["pprof_profiler_test.py"], srcs = ["pprof_profiler_test.py"],
main = "pprof_profiler_test.py", main = "pprof_profiler_test.py",
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
tags = ["no_pip"], # TODO(annarev): get it working with pip. tags = ["no_pip"], # TODO(annarev): get it working with pip.
deps = [ deps = [

View File

@ -49,6 +49,7 @@ py_library(
py_test( py_test(
name = "export_output_test", name = "export_output_test",
srcs = ["export_output_test.py"], srcs = ["export_output_test.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
":export_output", ":export_output",
@ -83,6 +84,7 @@ py_library(
py_test( py_test(
name = "export_test", name = "export_test",
srcs = ["export_test.py"], srcs = ["export_test.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
":export_utils", ":export_utils",
@ -109,6 +111,7 @@ py_library(
py_test( py_test(
name = "mode_keys_test", name = "mode_keys_test",
srcs = ["mode_keys_test.py"], srcs = ["mode_keys_test.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
":mode_keys", ":mode_keys",

View File

@ -43,6 +43,7 @@ py_test(
"create_python_api.py", "create_python_api.py",
"create_python_api_test.py", "create_python_api_test.py",
], ],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
":doc_srcs", ":doc_srcs",
@ -59,6 +60,7 @@ py_test(
"--api_name=tensorflow", "--api_name=tensorflow",
] + KERAS_API_INIT_FILES + KERAS_API_INIT_FILES_V1 + TENSORFLOW_API_INIT_FILES + TENSORFLOW_API_INIT_FILES_V1, ] + KERAS_API_INIT_FILES + KERAS_API_INIT_FILES_V1 + TENSORFLOW_API_INIT_FILES + TENSORFLOW_API_INIT_FILES_V1,
main = "doc_srcs_test.py", main = "doc_srcs_test.py",
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
":doc_srcs", ":doc_srcs",
@ -74,6 +76,7 @@ py_test(
"api_init_files.bzl", "api_init_files.bzl",
"api_init_files_v1.bzl", "api_init_files_v1.bzl",
], ],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
tags = ["no_pip"], tags = ["no_pip"],
deps = [ deps = [

View File

@ -21,6 +21,7 @@ py_library(
py_test( py_test(
name = "public_api_test", name = "public_api_test",
srcs = ["public_api_test.py"], srcs = ["public_api_test.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
":public_api", ":public_api",
@ -38,6 +39,7 @@ py_library(
py_test( py_test(
name = "traverse_test", name = "traverse_test",
srcs = ["traverse_test.py"], srcs = ["traverse_test.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
":test_module1", ":test_module1",

View File

@ -32,6 +32,7 @@ py_library(
py_binary( py_binary(
name = "system_info", name = "system_info",
srcs = ["system_info.py"], srcs = ["system_info.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
deps = [ deps = [
":system_info_lib", ":system_info_lib",
@ -55,6 +56,7 @@ py_library(
py_binary( py_binary(
name = "run_and_gather_logs", name = "run_and_gather_logs",
srcs = ["run_and_gather_logs.py"], srcs = ["run_and_gather_logs.py"],
python_version = "PY2",
srcs_version = "PY2AND3", srcs_version = "PY2AND3",
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [":run_and_gather_logs_main_lib"], deps = [":run_and_gather_logs_main_lib"],