tf.contrib.checkpoint.list_objects

View source on GitHub

Traverse the object graph and list all accessible objects.

tf.contrib.checkpoint.list_objects(root_trackable)

Looks for Trackable objects which are dependencies of root_trackable. Includes slot variables only if the variable they are slotting for and the optimizer are dependencies of root_trackable (i.e. if they would be saved with a checkpoint).

Args:

  • root_trackable: A Trackable object whose dependencies should be flattened.

Returns:

A flat list of objects.