调试器 V2 处于非活动状态,因为没有可用数据。
要使用调试器,
  1. 将以下行添加到您的程序开头:
    tf.debugging.experimental.enable_dump_debug_info( logdirtensor_debug_mode="FULL_HEALTH"circular_buffer_size=-1 )
  2. 重新运行程序。
自动检测问题
集成调试以跟踪问题的原因
关联日志到代码
日志目录中必须包含 TensorFlow Debugger (V2) 的数据。 tf.debugging.experimental.enable_dump_debug_info() 将在仪表化的 TensorFlow 程序执行时收集张量数据、图结构、相关的堆栈跟踪和源代码 到指定的目录 logdir。
查看 TensorFlow 调试器 V2 的 Python API 文档
查看其他 TensorFlow 调试 API 的文档