Checkpointable: A small utility for exempting objects from __setattr__ tracking
authorAllen Lavoie <allenl@google.com>
Sat, 5 May 2018 01:25:18 +0000 (18:25 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Sat, 5 May 2018 15:43:50 +0000 (08:43 -0700)
commitdd5ef1b9fc22b37e5eec87d659a3af064ca54b8b
treef6844070f219cf906c110085d47304ec4ef30c49
parent59f0618cedb8fd6ea989471f64ec66619f26b83e
Checkpointable: A small utility for exempting objects from __setattr__ tracking

Exposes it as tf.contrib.checkpoint.NoDependency. Objects wrapped in a
NoDependency object get unwrapped in __setattr__ and not tracked.

Removes the _save_counter dependency from tf.train.Checkpoint (the save counter
is still tracked as "save_counter" and always has been, so this is a
backwards-compatible dependency removal).

PiperOrigin-RevId: 195502562
tensorflow/contrib/checkpoint/__init__.py
tensorflow/python/keras/_impl/keras/engine/network.py
tensorflow/python/keras/_impl/keras/model_subclassing_test.py
tensorflow/python/training/checkpointable.py
tensorflow/python/training/checkpointable_test.py
tensorflow/python/training/checkpointable_utils.py