AttributeError: 'Trainer' object has no attribute 'val_dataloader' #19576
Closed
Unanswered
kiddycharles
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 2 comments
-
did you find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I guess it's called |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting the following error when running
trainer.validate(model, valid_dl)
Full traceback:
My
Trainer
object:trainer = Trainer(max_epochs=15)
train
start = time.time()
trainer.fit(model, train_dataloaders=train_dl)
print("Training time taken %f"%(time.time() - start), flush=True)
Any idea on how to fix this? My PyTorch-lightning version is 2.2.1. I am new to the PyTorching-lightning library and following the documentation. I was so confused, Thank you.
Beta Was this translation helpful? Give feedback.
All reactions