Iterate over a copy of dictionary keys when closing variable subscopes. Otherwise...
authorPriya Gupta <priyag@google.com>
Wed, 4 Apr 2018 22:15:32 +0000 (15:15 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 4 Apr 2018 22:20:23 +0000 (15:20 -0700)
commit1093a54cb79be1dd606eee9ff27b718006ba9d63
tree9b4d31a4a7573f7d9c6b6315b85c7ff6f9047f03
parentbf8ad8277258bdf352ddd1df5200e61ba625f7a2
Iterate over a copy of dictionary keys when closing variable subscopes. Otherwise, we run into a "dictionary changed size during iteration" once in a while, as we are modifying the values in the dictionary during the iteration.

PiperOrigin-RevId: 191655599
tensorflow/python/ops/variable_scope.py