AttributeError: 'Trainer' object has no attribute 'val_dataloader' #19576
Closed
Unanswered
kiddycharles
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 3 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
-
import pytorch_lightning as pla class TFTLightningModule(pla.LightningModule):
Wrap TFT in LightningModulemodel = TFTLightningModule(model) define you own funcctions above it should work |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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