[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.
[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.