Closed Sixy1204 closed 3 years ago
The code was written for python 2.7, it won't be a tough task to upgrade it to pyhton 3. Sorry for the confusion.
The code was written for python 2.7, it won't be a tough task to upgrade it to pyhton 3. Sorry for the confusion.
Sorry, my bad. When retraining, user should set max_iteration bigger than log iter.
thx! lol
The code was written for python 2.7, it won't be a tough task to upgrade it to pyhton 3. Sorry for the confusion.
I wonder why you share parameters of encoder to decoder:
decoder.embedding.weight = encoder.embedding.weight
and it cause same problem mentioned above:
UserWarning: optimizer contains a parameter group with duplicate parameters; in future, this will cause an error; see github.com/pytorch/pytorch/issues/40967 for more information
Hello
When I use python3 train.py -m model_path to retrain the model, it throws a UserWarning: optimizer contains a parameter group with duplicate parameters; in future, this will cause an error; see github.com/pytorch/pytorch/issues/40967 for more information super(Adagrad, self).init(params, defaults) And then the code stop running. I believe it is related to reloading model trained parameters. How can I fix it? thank you