Closed CoderBinGe closed 2 years ago
Why did the error say "MyTrainer" object has no attribute, should it be Trainer object? I tried to reproduce the error, but my code work properly, can you try to first uninstall fastNLP pip uninstall fastNLP
then install by pip install git+https://github.com/fastnlp/fastNLP@dev
.
Why did the error say "MyTrainer" object has no attribute, should it be Trainer object? I tried to reproduce the error, but my code work properly, can you try to first uninstall fastNLP
pip uninstall fastNLP
then install bypip install git+https://github.com/fastnlp/fastNLP@dev
.
Yes, MyTrainer inherits from fastNLP Trainer. I'll try to check the code again and again. Thank you for the reply.
My fastnlp = 0.7.1, torch =1.10.0+cu113,I don’t know why the following error was reported, Please help to take a look!