# tf.contrib.checkpoint.object_metadata

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/training/tracking/util.py#L442-L476) |

Retrieves information about the objects in a checkpoint.

    tf.contrib.checkpoint.object_metadata(
        save_path
    )

#### Example usage:

    object_graph = tf.contrib.checkpoint.object_metadata(
        tf.train.latest_checkpoint(checkpoint_directory))
    ckpt_variable_names = set()
    for node in object_graph.nodes:
      for attribute in node.attributes:
        ckpt_variable_names.add(attribute.full_name)

<br />

<br />

<br />

| ## Args ||
|---|---|
| `save_path` | The path to the checkpoint, as returned by `save` or [`tf.train.latest_checkpoint`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/train/latest_checkpoint). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A parsed `tf.contrib.checkpoint.TrackableObjectGraph` protocol buffer. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If an object graph was not found in the checkpoint. |

<br />