cmd打开命令
tensorboard --logdir=logs --port= # 在生成的log文件夹下打开 到浏览器查看
python 使用方法
`from torch.utils.tensorboard import SummaryWriter
writer=SummaryWriter("logs")
for i in range(100):
writer.add_scalar(tag="y=x^2函数",scalar_value=i**2,global_step=i)
writer.close()
print("over")
`