TypeError: training_step() missing 1 required positional argument: 'dataset_idx' #13114
Unanswered
morestart
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 2 comments
-
anyone know this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@morestart I believe this patch will make it work: -def training_step(self, batch, batch_idx, dataset_idx):
+def training_step(self, batch, batch_idx, dataloader_idx): |
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.
-
this is my datamodule:
train step and val step:
then get this error:
TypeError: training_step() missing 1 required positional argument: 'dataset_idx'
Beta Was this translation helpful? Give feedback.
All reactions