trainer.test( ) not working #11437
-
I have used the below code I have trained the model for 20 epochs, After that trainer. test( ) didn't run. I Got the Following error lines : I have also tried the way suggested in Doc here But still, the error exists. This happening mostly in Google collab and in AwsInstance. In Local, It works sometimes and sometimes not. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
hey @purnasai-soulpageit ! you need to pass in the datamodule to
since lightning no longer patches the data_modules passed during |
Beta Was this translation helpful? Give feedback.
-
Hi @rohitgr7 I tried passing all including datamodule, ckpt_path earlier, but then for some reason, they threw me an error. I just checked again passing just datamodule and it worked. |
Beta Was this translation helpful? Give feedback.
-
@kxding can you please post your stack trace. and, which version of lightning or pytorch lightning are you using? thank you 🙂 |
Beta Was this translation helpful? Give feedback.
hey @purnasai-soulpageit !
you need to pass in the datamodule to
trainer.test
.since lightning no longer patches the data_modules passed during
.fit
you need to pass it there too.