Solution:
The current pytorch version I use is pytorch==0.3.1
d
Only if upgraded to pytorch==0.4.1
, torch provides torch.nn.LayerNorm
instance.
AttributeError: module 'torch.nn' has no attribute 'LayerNorm'
最新推荐文章于 2024-09-07 01:00:00 发布
Solution:
The current pytorch version I use is pytorch==0.3.1
d
Only if upgraded to pytorch==0.4.1
, torch provides torch.nn.LayerNorm
instance.