[pytorch]-语句知识点整理-长期更新


1._, predicted = torch.max(outputs.data, 1)理解

解释:https://blog.csdn.net/weixin_48249563/article/details/111387501


2.model.train()和model.eval()用法和区别

解释:https://blog.csdn.net/qq_38410428/article/details/101102075


3.with torch.no_grad() 详解

解释:https://blog.csdn.net/weixin_46559271/article/details/105658654


4.model.zero_grad() vs optimizer.zero_grad()

解释:https://www.jianshu.com/p/c59b75f1064c


5. images.to(device)

解释:https://blog.csdn.net/shaopeng568/article/details/95205345


6.DataLoader函数

解释:https://blog.csdn.net/TH_NUM/article/details/80877687


7.parameters requires_grad=False和optimizer优化参数

解释:https://blog.csdn.net/qq_24502469/article/details/104347571


8. x = x.view(x.size(0), -1)语句理解

https://blog.csdn.net/TYUT_xiaoming/article/details/100799527


9.correct += (predicted == labels).sum().item()的理解

https://blog.csdn.net/weixin_48249563/article/details/111395642


10.torch.Tensor和torch.tensor的区别

https://blog.csdn.net/weixin_42018112/article/details/91383574


11.pytorch中squeeze()和unsqueeze()函数介绍

https://blog.csdn.net/flysky_jay/article/details/81607289


12.PyTorch 模型保存与重新加载

https://blog.csdn.net/comli_cn/article/details/107516740


https://zhuanlan.zhihu.com/p/94971100


13.Pytorch快速输出网络模型信息方法

https://blog.csdn.net/weixin_38705903/article/details/111832264


14.torch.max()使用讲解

https://www.jianshu.com/p/3ed11362b54f

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值