View source on GitHub

Visualizes an object-based checkpoint (from tf.train.Checkpoint).

Useful for inspecting checkpoints and debugging loading issues.

Example usage from Python (requires pydot):

import tensorflow as tf
import pydot

dot_string = tf.contrib.checkpoint.dot_graph_from_checkpoint('/path/to/ckpt')
parsed, = pydot.graph_from_dot_data(dot_string)

Example command line usage:

python -c "import tensorflow as tf;\
  | dot -Tsvg > /tmp/tensorflow/checkpoint_viz.svg

save_path The checkpoint prefix, as returned by or tf.train.latest_checkpoint.

A graph in DOT format as a string.