tfdbg调试程序使用方法

使用方法

参考TensorFlow 调试程序

from tensorflow.python import debug as tfdbgsess = tfdbg.LocalCLIDebugWrapperSession(sess, thread_name_filter="MainThread$")  # debug主线程
sess.add_tensor_filter("has_inf_or_nan", tfdbg.has_inf_or_nan)

Bug: ValueError Node name … is not found in partition graph of device

tf.train.start_queue_runners()有关,解决办法参考下图。其原因为session实在多线程方式下工作的,而与命令行debugging不匹配(not amenable to)。因此将Debugger session指定为主线程即可。

github issue