aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/tests/BUILD
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2018-05-15 09:47:50 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-15 09:50:47 -0700
commitc515b31314f0c4b551bded4961e096db98a998fc (patch)
tree6c258f70f2a306b4dff9aaa26ee340d551aa22fd /tensorflow/compiler/tests/BUILD
parent6f971fb184560ba7e5aada79e539588f73450d16 (diff)
[TF:XLA] Generalize existing support for keeping variables on an XLA device in reshaped form, instead allowing XLA devices to keep all tensors in a reshaped form outside an XLA computation.
PiperOrigin-RevId: 196683444
Diffstat (limited to 'tensorflow/compiler/tests/BUILD')
-rw-r--r--tensorflow/compiler/tests/BUILD124
1 files changed, 68 insertions, 56 deletions
diff --git a/tensorflow/compiler/tests/BUILD b/tensorflow/compiler/tests/BUILD
index 96dfc8d8f1..213ab95a12 100644
--- a/tensorflow/compiler/tests/BUILD
+++ b/tensorflow/compiler/tests/BUILD
@@ -42,7 +42,7 @@ py_library(
"//tensorflow/python:array_ops",
"//tensorflow/python:client",
"//tensorflow/python:client_testlib",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform",
"//tensorflow/python:random_seed",
"//tensorflow/python:session",
@@ -58,7 +58,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:training",
@@ -72,7 +72,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:training",
@@ -93,7 +93,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
],
@@ -111,7 +111,7 @@ tf_xla_py_test(
":xla_test",
"//tensorflow/python:array_ops",
"//tensorflow/python:bitwise_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:math_ops_gen",
"//tensorflow/python:nn_ops",
@@ -127,7 +127,7 @@ tf_xla_py_test(
tags = ["optonly"],
deps = [
":xla_test",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
"//tensorflow/python:random_ops",
],
@@ -141,7 +141,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:training",
@@ -156,7 +156,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:training",
@@ -170,7 +170,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
],
@@ -184,7 +184,7 @@ tf_xla_py_test(
":xla_test",
"//tensorflow/python:array_ops",
"//tensorflow/python:array_ops_gen",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:gradient_checker",
"//tensorflow/python:gradients",
"//tensorflow/python:math_ops",
@@ -209,7 +209,7 @@ tf_xla_py_test(
":xla_test",
"//tensorflow/python:array_ops",
"//tensorflow/python:array_ops_gen",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:gradient_checker",
"//tensorflow/python:gradients",
"//tensorflow/python:math_ops",
@@ -225,7 +225,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:nn",
"//tensorflow/python:nn_ops",
"//tensorflow/python:nn_ops_gen",
@@ -241,7 +241,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:nn",
"//tensorflow/python:nn_ops",
"//tensorflow/python:nn_ops_gen",
@@ -263,7 +263,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:nn",
"//tensorflow/python:nn_ops",
"//tensorflow/python:nn_ops_gen",
@@ -291,7 +291,7 @@ tf_xla_py_test(
":xla_test",
"//tensorflow/python:array_ops",
"//tensorflow/python:data_flow_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -307,7 +307,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -326,7 +326,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:layers",
"//tensorflow/python:math_ops",
"//tensorflow/python:nn",
@@ -346,7 +346,7 @@ tf_xla_py_test(
"//tensorflow/contrib/signal:signal_py",
"//tensorflow/python:array_ops",
"//tensorflow/python:extra_py_tests_deps",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
"//tensorflow/python:spectral_ops",
],
@@ -360,7 +360,7 @@ tf_xla_py_test(
":xla_test",
"//tensorflow/python:array_ops",
"//tensorflow/python:data_flow_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -372,7 +372,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:training",
@@ -388,7 +388,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -403,7 +403,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:image_ops",
"//tensorflow/python:platform_test",
],
@@ -431,7 +431,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:nn",
"//tensorflow/python:nn_ops_gen",
"//tensorflow/python:platform_test",
@@ -446,7 +446,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -458,7 +458,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:training",
@@ -472,7 +472,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
],
@@ -485,7 +485,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:control_flow_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -498,7 +498,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:nn_ops",
"//tensorflow/python:nn_ops_gen",
"//tensorflow/python:platform_test",
@@ -513,7 +513,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:nn_ops",
"//tensorflow/python:nn_ops_gen",
"//tensorflow/python:platform_test",
@@ -530,7 +530,7 @@ tf_xla_py_test(
],
deps = [
":xla_test",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
"//tensorflow/python:random_ops",
],
@@ -545,7 +545,7 @@ tf_xla_py_test(
":xla_test",
"//tensorflow/python:array_ops",
"//tensorflow/python:errors",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
],
@@ -561,7 +561,7 @@ tf_xla_py_test(
"//tensorflow/compiler/tf2xla/python:xla",
"//tensorflow/python:array_ops",
"//tensorflow/python:errors",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
],
@@ -574,7 +574,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
],
)
@@ -586,7 +586,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -598,7 +598,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
"//tensorflow/python:training",
@@ -613,7 +613,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
],
@@ -626,7 +626,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:math_ops_gen",
"//tensorflow/python:platform_test",
@@ -641,7 +641,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
],
@@ -657,7 +657,7 @@ tf_xla_py_test(
":xla_test",
"//tensorflow/python:array_ops",
"//tensorflow/python:data_flow_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -670,7 +670,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/contrib/stateless",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -684,7 +684,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:math_ops_gen",
"//tensorflow/python:nn_ops",
@@ -703,7 +703,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:platform_test",
],
@@ -716,7 +716,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:nn_ops",
"//tensorflow/python:nn_ops_gen",
@@ -730,7 +730,7 @@ tf_xla_py_test(
srcs = ["fused_batchnorm_test.py"],
deps = [
":xla_test",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:math_ops_gen",
"//tensorflow/python:nn",
@@ -749,7 +749,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:math_ops_gen",
"//tensorflow/python:nn_ops",
@@ -768,7 +768,7 @@ tf_xla_py_test(
":xla_test",
"//tensorflow/compiler/tf2xla/python:xla",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
"//tensorflow/python:training",
],
@@ -783,7 +783,7 @@ tf_xla_py_test(
":xla_test",
"//tensorflow/python:array_ops",
"//tensorflow/python:data_flow_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -795,7 +795,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -808,21 +808,34 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
-cuda_py_test(
+tf_xla_py_test(
name = "xla_device_test",
size = "small",
srcs = ["xla_device_test.py"],
+ tags = ["optonly"],
+ deps = [
+ ":xla_test",
+ "//tensorflow/python:array_ops",
+ "//tensorflow/python:framework",
+ "//tensorflow/python:platform_test",
+ ],
+)
+
+cuda_py_test(
+ name = "xla_device_gpu_test",
+ size = "small",
+ srcs = ["xla_device_gpu_test.py"],
additional_deps = [
"//tensorflow/python:array_ops",
"//tensorflow/python:client",
"//tensorflow/python:client_testlib",
"//tensorflow/python:control_flow_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
],
)
@@ -839,7 +852,6 @@ cuda_py_test(
"//tensorflow/python:client_testlib",
"//tensorflow/python:control_flow_ops",
"//tensorflow/python:framework",
- "//tensorflow/python:framework_for_generated_wrappers",
"//tensorflow/python:gradients",
"//tensorflow/python:layers",
"//tensorflow/python:math_ops",
@@ -887,7 +899,7 @@ py_library(
srcs_version = "PY2AND3",
deps = [
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:math_ops",
"//tensorflow/python:random_ops",
"//tensorflow/python:variables",
@@ -902,7 +914,7 @@ cuda_py_test(
":xla_test",
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:gradients",
"//tensorflow/python:init_ops",
"//tensorflow/python:math_ops",
@@ -940,7 +952,7 @@ tf_xla_py_test(
srcs = ["fake_quant_ops_test.py"],
deps = [
":xla_test",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)
@@ -952,7 +964,7 @@ tf_xla_py_test(
deps = [
":xla_test",
"//tensorflow/python:array_ops",
- "//tensorflow/python:framework_for_generated_wrappers",
+ "//tensorflow/python:framework",
"//tensorflow/python:platform_test",
],
)