You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
When I run the model "Character level Penn Treebank (PTB) with LSTM", an error occur ——
File "/awd-lstm-lm-master 2/utils.py", line 8, in repackage_hidden
return h.detach()
AttributeError: 'torch.FloatTensor' object has no attribute 'detach'.
Do you know how to fix it? thx ~ I'm a rookie in NLP.
The text was updated successfully, but these errors were encountered:
When I run the model "Character level Penn Treebank (PTB) with LSTM", an error occur ——
File "/awd-lstm-lm-master 2/utils.py", line 8, in repackage_hidden
return h.detach()
AttributeError: 'torch.FloatTensor' object has no attribute 'detach'.
Do you know how to fix it? thx ~ I'm a rookie in NLP.
The text was updated successfully, but these errors were encountered: