aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests/variable_scope_test.py
diff options
context:
space:
mode:
authorGravatar Akshay Agrawal <akshayka@google.com>2018-01-10 13:08:52 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-10 13:14:34 -0800
commit47e06b7e53963cc45ee236cf86cc089185f47d32 (patch)
tree46c29753e626ac4b5fb19e2193027eb80f7a9020 /tensorflow/python/kernel_tests/variable_scope_test.py
parent3dc58f798660b98a0198b33edefb6f9f2aa7d827 (diff)
Support nesting EagerTemplate objects.
* Nesting is implemented by sharing a single EagerVariableStore among a top-level EagerTemplate and all children EagerTemplate objects that are nested underneath it. Variables added to an EagerTemplate object are also added to all EagerTemplate objects under which it is nested. * This change also simplifies the implementation of __call__ for both Template and EagerTemplate. PiperOrigin-RevId: 181506600
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 c090715cc4..883ee8fa18 100644
--- a/tensorflow/python/kernel_tests/variable_scope_test.py
+++ b/tensorflow/python/kernel_tests/variable_scope_test.py
@@ -117,7 +117,7 @@ class VariableScopeTest(test.TestCase):
w = variable_scope.get_variable("w", [])
self.assertEqual(w.dtype.base_dtype, dtypes.float16)
- def testEagerVaribleStore(self):
+ def testEagerVariableStore(self):
with context.eager_mode():
store = variable_scope.EagerVariableStore()
with store.as_default():