title: How does one inspect variables in a checkpoint file in TensorFlow when TensorFlow can't find the tools attribute?
body: <p>I was trying to inspect checkpoints using the code at <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/inspect_checkpoint.py" rel="noreferrer">inspect_checkpoint.py</a>. However, I wasn't able to have it work because they didn't really provide an example. I tried the simplest thing I thought would work:</p>
  
  <pre><code>tf.python.tools.inspect_checkpoint.print_tensors_in_checkpoint_file(file_name='./tmp/mdl_ckpt',tensor_name='',all_tensors='')
  </code></pre>
  
  <p>however I get that <code>python</code> has no attribute <code>tools</code>:</p>
  
  <pre><code>AttributeError: module 'tensorflow.python' has no attribute 'tools'
  </code></pre>
  
  <p>it seems like a (embarrassingly) trivial bug/issue. Does someone know what is going on? Why can't it find tools? Also, even if it did find it, how would one run the function provided in that file?</p>
  
  <hr>
  
  <p>Unfortunately, the very related question did not really provide an answer of how to get around this issue. The question is here <a href="https://stackoverflow.com/questions/38218174/how-can-find-the-variable-names-that-saved-in-tensorflow-checkpoint">How can find the variable names that saved in tensorflow checkpoint?</a></p>