TypeError: 'function' object is not iterable #12844
Answered
by
rohitgr7
chriswangky
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
And here is my code.
And advice on what happpend. |
Beta Was this translation helpful? Give feedback.
Answered by
rohitgr7
Apr 22, 2022
Replies: 1 comment
-
update trainer.fit(model, train_dataloaders=train_dataloader,
val_dataloaders=val_dataloader) to trainer.fit(model, train_dataloaders=train_dataloader(),
val_dataloaders=val_dataloader()) since |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chriswangky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
update
to
since
train_dataloader/val_dataloader
is a function in your case.