How to resolve could not infer the batch_size from the batch
#13683
Unanswered
Zhengxinyang
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 7 replies
-
@Zhengxinyang You can fix the error by providing |
Beta Was this translation helpful? Give feedback.
7 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.
-
I encountered the following error report:
pytorch_lightning.utilities.exceptions.MisconfigurationException: We could not infer the batch_size from the batch. Either simplify its structure or provide the batch_size as
self.log(..., batch_size=batch_size)
.How can I fix it without changing the data loader?
Beta Was this translation helpful? Give feedback.
All reactions