Is Trainer.validate not available now in the latest version?
My code is like this:
model = MyLitModel()
trainer = Trainer(gpus=1)
trainer.validate(model, dataloader)
However, I got an AttributeError:
AttributeError: type object 'Trainer' has no attribute 'validate'
It's available in master!
Note that your first call is using Trainer.validate not trainer.validate and that's why you get that error
fixed:
model = MyLitModel()
trainer = Trainer(gpus=1)
trainer.validate(model, dataloader)