the core module reports an error
CoderBinGe opened this issue · 2 comments
CoderBinGe commented
yhcc commented
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
.
CoderBinGe commented
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.