aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests/variable_scope_test.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-12-05 10:50:58 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-05 11:06:55 -0800
commit8a5dae396113655db2e4b16fe344dda4dca54994 (patch)
tree86024e08cf159e88d020017655bbe6006fc50f65 /tensorflow/python/kernel_tests/variable_scope_test.py
parent1e8ce51f43f5a3811740520d5a6205003e9665c2 (diff)
Adds VariableV2 with a sane shape_fn.
Change: 141071094
Diffstat (limited to 'tensorflow/python/kernel_tests/variable_scope_test.py')
-rw-r--r--tensorflow/python/kernel_tests/variable_scope_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/kernel_tests/variable_scope_test.py b/tensorflow/python/kernel_tests/variable_scope_test.py
index b46cc535cb..0c524a7f80 100644
--- a/tensorflow/python/kernel_tests/variable_scope_test.py
+++ b/tensorflow/python/kernel_tests/variable_scope_test.py
@@ -641,7 +641,7 @@ class VariableScopeTest(tf.test.TestCase):
varname_type = []
def device_func(op):
- if op.type == "Variable":
+ if op.type in ["Variable", "VariableV2"]:
varname_type.append((op.name, op.get_attr("dtype")))
return "/gpu:0"