pytorch学习之tensorboard的使用

SummaryWriter
class SummaryWriter(builtins.object)
 |  Writes entries directly to event files in the log_dir to be
 |  consumed by TensorBoard.
 |  
 |  The `SummaryWriter` class provides a high-level API to create an event file
 |  in a given directory and add summaries and events to it. The class updates the
 |  file contents asynchronously. This allows a training program to call methods
 |  to add data to the file directly from the training loop, without slowing down
 |  training.

类 SummaryWriter(builtins.object)

将条目直接写入要log_dir的事件文件 由 TensorBoard 使用。

'Summarywriter'类提供了一个高级 API 来创建事件文件,然后向其添加摘要和事件。该类将更新

异步文件内容。这允许训练程序调用方法直接从训练循环向文件添加数据,而不会降低训练。

例子

from torch.utils.tensorboard import SummaryWriter 
# 使用自动生成的文件夹名称创建摘要编写器。 
writer = SummaryWriter() 
# 文件夹位置: 运行/May04_22-14-54_s-MacBook-Pro.local/ 
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值