I tried to check for breakpoints using the inspect_checkpoint.py code. However, I could not get it to work, because they really did not give an example. I tried the simplest thing that I thought would work:
tf.python.tools.inspect_checkpoint.print_tensors_in_checkpoint_file(file_name='./tmp/mdl_ckpt',tensor_name='',all_tensors='')
however, I understand that python
does not have the tools
attribute:
AttributeError: module 'tensorflow.python' has no attribute 'tools'
This seems to be an (embarrassingly) trivial error / problem. Does anyone know what is going on? Why can't he find the tools? Also, even if he finds it, how to run the function provided in this file?
Unfortunately, a very close question did not really give an answer on how to get around this problem. The question here is How to find variable names stored in tensorflow breakpoint?
source share