使用方法 参考TensorFlow 调试程序 from tensorflow.python import debug as tfdbgsess = tfdbg.LocalCLIDebugWrapperSession(sess, thread_name_filter="MainThread$") # debug主线程 sess.add……