请卸载TensorBoard的所有副本,然后安装最新版本的 tb-nightly
pip uninstall -y tensorboard tb-nightly &&
pip install tb-nightly # must have at least tb-nightly==2.5.0a20210316
Then, invoke TensorBoard with the flag:–load_fast=true
tensorboard --logdir /path/to/logs --load_fast true
Use TensorBoard as you usually would. It should work the same way, just
faster.