Tensorboard 交互式调试器未连接

Tensorboard Interactive Debugger Not Connecting

我正在 运行 在 Windows 中安装最新版本的 tensorflow (1.7.0)。它添加了一个用于在 tensorboard 中进行调试的新功能。但是,我无法连接它。我之前使用的是 LocalCLIDebugWrapperSession 调试器。但是,我想尝试一下 TensorBoardDebugWrapperSession 中的新功能。

当我 运行 tensorboard 使用命令 "tensorboard --logdir=dir --debugger_port 6064" 它告诉我 "Creating InteractiveDebuggerPlugin at port 6064".

然而,当我 运行 我在 tensorflow 中的模型时(在将 LocalCLIDebugWrapperSession 换成 TensorBoardDebugWrapperSession 之后)它似乎永远不会连接到交互式调试器。我在 tensorboard 或 tensorflow 的输出中没有收到错误。没有任何反应,在 tensorboard 调试器页面上它只显示:"Debugger is waiting for Session.run() connections..."

tensorflow 似乎不支持 windows 上的 grpc 连接。解决方法是使用 windows 子系统。请注意,子系统无法直接访问系统 GPU。所以它不能与tensorflow-gpu版本一起使用

start_epoch: grpc:// debug URL scheme is not implemented on Windows yet.

https://github.com/tensorflow/tensorflow/issues/17933