title: How to get size and contents of TensorFlow graphdef
body: <p>Need to understand the contents of a graphdef while debugging using gdb. Working on TensorFlow <a href="https://github.com/tensorflow/tensorflow/blob/v2.9.1/tensorflow/core/ir/importexport/tests/roundtrip/verify_roundtrip.cc#L50" rel="nofollow noreferrer">code</a> itself.
  Below don't work:</p>
  <pre><code>(gdb) print(graphdef.numpy())
  Couldn't find method tensorflow::GraphDef::numpy
  (gdb) print(graphdef.eval())
  Couldn't find method tensorflow::GraphDef::eval
  </code></pre>
  <p>Any suggestions?</p>