trainer.test( ) not working
I have used the below code


Dataclass below



Model Class below



Trainnig below



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.
Please let me know what am I missing here.
hey @purnasai-soulpageit !
you need to pass in the datamodule to trainer.test.
trainer.test(datamodule=data_module)

since lightning no longer patches the data_modules passed during .fit you need to pass it there too.