tf.contrib.checkpoint.capture_dependencies

Capture variables created within this scope as Template dependencies.

Requires that template.variable_scope is active.

This scope is intended as a compatibility measure, allowing a trackable object to add dependencies on variables created in a block of code which is not aware of object-based saving (and instead uses variable names heavily). This is how Template objects add dependencies on variables and sub-Templates. Where possible, use tf.compat.v1.make_template directly.

Args
template The Template object to register dependencies with.

Yields:

None (when used as a context manager).

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/checkpoint/capture_dependencies