LightningCLI: Passing objects via link_arguments #13539
-
Hi, is there a way to pass objects from a LightningDataModule to a LightningModule in the LightningCLI using link_arguments? I tried the following
but got a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@mauvilsa posted here as discussed in slack |
Beta Was this translation helpful? Give feedback.
-
The support for this has been implemented in jsonargparse. There is no need for any change in pytorch-lightning. Just update the package, i.e. |
Beta Was this translation helpful? Give feedback.
The support for this has been implemented in jsonargparse. There is no need for any change in pytorch-lightning. Just update the package, i.e.
pip install -U jsonargparse
, and your example should work.