aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/distribute/python/values.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-31 11:00:48 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-31 11:09:48 -0700
commitd28a348791cf411dda8053f3cdbdd62852b1e029 (patch)
tree1e5beb01cb83a7b830a3020b81cee0f4130b28f1 /tensorflow/contrib/distribute/python/values.py
parentdf753323a22cc4a58a26275b52ce2cd636350813 (diff)
Drop unused `_mirrored_container` property of variables that are
components of a MirroredVariable. We switched to using `_distributed_container` set in the parent class `DistributedVariable`, but the code setting `_mirrored_container` was accidentally added back as a result of a merge. PiperOrigin-RevId: 211111147
Diffstat (limited to 'tensorflow/contrib/distribute/python/values.py')
-rw-r--r--tensorflow/contrib/distribute/python/values.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/tensorflow/contrib/distribute/python/values.py b/tensorflow/contrib/distribute/python/values.py
index 479b7f39d6..fafa6384a1 100644
--- a/tensorflow/contrib/distribute/python/values.py
+++ b/tensorflow/contrib/distribute/python/values.py
@@ -340,10 +340,6 @@ class MirroredVariable(DistributedVariable, Mirrored,
"""Holds a map from device to variables whose values are kept in sync."""
def __init__(self, index, primary_var, aggregation):
- # Use a weakref to make it easy to map from the contained values
- # to the container without introducing a reference cycle.
- for v in six.itervalues(index):
- v._mirrored_container = weakref.ref(self) # pylint: disable=protected-access
self._primary_var = primary_var
self._aggregation = aggregation
super(MirroredVariable, self).__init__(index)