Atcold / NYU-DLSP20

NYU Deep Learning Spring 2020
https://atcold.github.io/NYU-DLSP20/
Other
6.69k stars 2.22k forks source link

[DLFL21] fix errors on running 15-transformers.ipynb #798

Closed NoTody closed 2 years ago

NoTody commented 3 years ago

[DLFL21] 1. E.requires_grad=False need to be set before the operations; otheriwise, "runtimeerror: a view of a leaf variable that requires grad is being used in an in-place operation." will occur when initializing the model. 2. torchtext.legacy need to used when retrieving IMDB dataset in newest version of torch.

review-notebook-app[bot] commented 3 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB