运行的代码: python3 -m tensorboard.main --logdir=dir dir指的是文件名称 不是直接运行events.out.tfevents文件。 需要下载tensorflow以后才能用tensorboard可视化。