Pytorch(九) —— Tensorboard(当有了tensorboard日志文件怎么可视化它)(同时显示多个模型)(vscode的tensorboard)(TensorboardX)_tensorboard --logdir-CSDN博客文章浏览阅读9.7k次,点赞10次,收藏56次。tensorboard.pyfrom tensorboardX import SummaryWriterwriter = SummaryWriter("logs")for i in range(100): writer.add_scalar('y=x',i,i)writer.close()运行后就会生成一个logs文件夹然后在命令行下输入tensorboard --logdir=logs#想换端口的话tensorboard --logdir=logs --._tensorboard --logdirhttps://blog.csdn.net/hxxjxw/article/details/106155870