TypeError: setup() got an unexpected keyword argument 'stage' #7800
Answered
by
ananthsub
fabrahman
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
Hi, When calling
Any pointers would be much appreciated. Thx |
Beta Was this translation helpful? Give feedback.
Answered by
ananthsub
Jun 2, 2021
Replies: 1 comment 3 replies
-
Can you share your LightningModule code? Are you overriding the |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
carmocca
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you share your LightningModule code? Are you overriding the
setup
function? If so, are you overriding it with this signature? https://github.com/PyTorchLightning/pytorch-lightning/blob/03bb389b218084f365b922f2a50133a5aaaadaf0/pytorch_lightning/core/hooks.py#L395