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
Hej Katerina, first thanks for this nice adaption! Helped me a lot to use the AWD-LSTM for my own code.
Not sure if you are still using this repo, but for everybody how comes along maybe this is helpful:
For DropConnectset_weights in WeightDropout.py faces an issue in newer (?) Pytorch versions, because torch.nn.functional.dropout returns a tensor during training but a parameter during evaluation. Adding (*) should fix the bug.
if not self.training: # (*)
w = w.data
setattr(self.module, name_w, w)
Hej Katerina, first thanks for this nice adaption! Helped me a lot to use the AWD-LSTM for my own code.
Not sure if you are still using this repo, but for everybody how comes along maybe this is helpful:
For DropConnect
set_weights
inWeightDropout.py
faces an issue in newer (?) Pytorch versions, becausetorch.nn.functional.dropout
returns a tensor during training but a parameter during evaluation. Adding (*) should fix the bug.For more infos, see salesforce/awd-lstm-lm#79.
The text was updated successfully, but these errors were encountered: