TypeError: validation_step() takes 2 positional arguments but 3 were given #12838
Answered
by
rohitgr7
chriswangky
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
When running my model I get the error message:
Any advice on what happened? |
Beta Was this translation helpful? Give feedback.
Answered by
rohitgr7
Apr 21, 2022
Replies: 1 comment 10 replies
-
your code looks correct. Are you sure you are using a single validation dataloader? |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
chriswangky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
your code looks correct. Are you sure you are using a single validation dataloader?
if yes, can you reproduce it using BoringModel??