
深度学习
记录自己做深度学习的小教训
lllllliiiiiijjjjjjjj
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
`‘LinearNet‘ object has no attribute ‘weight‘`
报错:'LinearNet' object has no attribute 'weight'报错代码:for m in net.modules(): print(m) print(m.weight) print(m.bias)解决:for m in net.modules(): if isinstance(m,nn.Linear): print(m) print(m.weight) print(m.bias)...原创 2021-12-06 11:31:00 · 1698 阅读 · 0 评论 -
Runtime error: expected scalar type Float but found Double
错误:Runtime error: expected scalar type Float but found Doublew_true=torch.tensor([2,-3.4]).Tb_true=4.2feature = torch.from_numpy(np.random.normal(0,1,(num_input,num_example)))#feature = torch.float32(feature)labels = torch.matmul(w_true.T,feature)+b_t原创 2021-12-05 20:32:32 · 6941 阅读 · 0 评论 -
pip 安装没有证书解决办法
pip 安装没有证书解决办法使用pip安装东西出现下面问题Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): 解决办法:1: 重新安装pip conda install pip2:然后 pip install xxx此时如果 出现ValueErro原创 2021-12-01 10:16:40 · 1396 阅读 · 0 评论 -
阅读NBNet Pytorch源码总结
阅读NBNet Pytorch源码总结原创 2022-07-22 20:45:07 · 471 阅读 · 0 评论