Access datamodule in setup()
#15102
Unanswered
gianmarcoaversanoenx
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 1 reply
-
May you can access |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello,
I want to dynamically build a model. One model attribute will be inferred when the data is available. Thus, I need to access the dataset that is being used for the training from within the
LightningModule
. I tried to access that from thesetup()
method, but I failed.Error message:
What would be the correct way to do this?
Beta Was this translation helpful? Give feedback.
All reactions