Switch the eager GAN MNIST example to object-based checkpointing
authorAllen Lavoie <allenl@google.com>
Wed, 7 Mar 2018 17:51:14 +0000 (09:51 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 7 Mar 2018 17:59:34 +0000 (09:59 -0800)
commitc6806ae8fcefa6deb701ff06a50a060348bcee90
tree55942f489b4ae5da7f2007cd7dc8b80c07015d80
parentb9f06e07c417f9d96cb59a4898328a98d0df37b2
Switch the eager GAN MNIST example to object-based checkpointing

- Removes variable_scopes, since they're no longer necessary (duplicate variable names are OK)
- Switches up the counters a bit (global_step -> step_counter, checkpoint the epoch counter)

PiperOrigin-RevId: 188190128
tensorflow/contrib/eager/python/examples/gan/mnist.py
tensorflow/contrib/eager/python/examples/gan/mnist_test.py