Switch the eager PTB example to object-based saving.
authorAllen Lavoie <allenl@google.com>
Fri, 6 Apr 2018 20:58:40 +0000 (13:58 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 6 Apr 2018 21:01:19 +0000 (14:01 -0700)
commit8413fb51307c0274ae4db31181c531de046eb309
tree8a8cd1ed557e6b5b098f2b625a867d753946e41a
parented6a2cd368cea48433236563953f7c603ba78115
Switch the eager PTB example to object-based saving.

Should be the last eager example using name-based saving. This works now that cuDNN LSTM cells are Checkpointable.

The CPU and GPU checkpoints for this example (still) won't be compatible; I may follow up with a CL which makes them equivalent. Right now I don't think they're even implementing the same architecture.

PiperOrigin-RevId: 191935995
tensorflow/contrib/eager/python/examples/rnn_ptb/rnn_ptb.py