会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
地球上最后一个直男
博客园
首页
新随笔
联系
订阅
管理
2020年4月20日
pytorch强大的自动求导功能
摘要: import torch x = torch.tensor(2.,requires_grad=True) #requires_grad=True不能丢,因为默认是False,第一个参数一定得是float形式才能求导 w = torch.tensor(1.,requires_grad=True) b
阅读全文
posted @ 2020-04-20 16:22 地球上最后一个直男
阅读(374)
评论(0)
推荐(0)
编辑
公告