Fix a bug which caused slot variables to be shared when executing eagerly
authorAllen Lavoie <allenl@google.com>
Thu, 15 Mar 2018 20:52:16 +0000 (13:52 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 15 Mar 2018 20:56:03 +0000 (13:56 -0700)
commit856438f65e5705b373413bce29758a92194ff9b6
treedcc1c1e4e544abd17db08f1c35aa4fc7c6379267
parentc17ba11c799be3ab24b826a0f1bace86de26c055
Fix a bug which caused slot variables to be shared when executing eagerly

Threads the uid() name of a ResourceVariable through to the Optimizer. Tests
that slot variables are unique in several ways.

Previously ResourceVariable._shared_name was the Optimizer's slot key for a
variable, which for tfe.Variable() is just the non-uniquified name.

PiperOrigin-RevId: 189240115
tensorflow/contrib/eager/python/checkpointable_utils_test.py
tensorflow/python/ops/resource_variable_ops.py
tensorflow/python/training/adam_test.py
tensorflow/python/training/optimizer.py