AttributeError: module 'torch.nn' has no attribute 'LocalResponseNorm'問題的解決辦法

錯誤如下: AttributeError: module ‘torch.nn’ has no attribute ‘LocalResponseNorm’ 錯誤原因: 我在Windows裝的pytorch是0.3.1。查看0.3.1的文檔發現確實沒有這個模塊。 查看0.4.1的官方文檔發現,有這個模塊 class torch.nn.LayerNorm(normalized_shape, eps=1e
相關文章
相關標籤/搜索