Object based saving prototype: create ResourceVariables directly by default.
authorAllen Lavoie <allenl@google.com>
Thu, 8 Feb 2018 23:18:31 +0000 (15:18 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 8 Feb 2018 23:22:35 +0000 (15:22 -0800)
commit2939af7253339963d0c631e46468bdc26930897a
tree3ef4d6f64499003a44c385ef40bc372c19a15afe
parenta5d93698ad5ae1e6488b536abb8501cd6ec70551
Object based saving prototype: create ResourceVariables directly by default.

This avoids variable reuse errors when building a graph. Where necessary for compatibility, we can still use get_variable.

PiperOrigin-RevId: 185060891
tensorflow/contrib/eager/python/BUILD
tensorflow/contrib/eager/python/checkpointable.py
tensorflow/contrib/eager/python/checkpointable_test.py