- 博客(2)
- 收藏
- 关注
原创 AttributeError: module 'torch.nn' has no attribute 'LayerNorm'
Solution:The current pytorch version I use is pytorch==0.3.1dOnly if upgraded to pytorch==0.4.1, torch provides torch.nn.LayerNorm instance.
2020-02-26 16:22:14
1915
原创 The difference between pytorch.range() and pytorch.arange()
>>> y = torch.range(0,3)>>> ytensor([0., 1., 2., 3.]>>> y.dtypetorch.float32>>> t = torch.arange(0,3)>>> ttensor([0, 1, 2])>>> t.dtypet...
2020-02-24 12:13:07
116
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人