You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to dynamically link arguments in the LightningCLI, say, depending on the module or datamodule subclass that is specified in a config file or at the command line?
Maybe more details are needed, since dynamically is a rather general term. Some dynamic linking that already work:
When the target of a link is a parameter in a subclass, the link is only applied if the selected subclass have such parameter, otherwise the link is ignored.
A link can have as source an entire subclass block. And links can have a compute_fn, see link_arguments. Thus, it is possible to implement a compute_fn that depending on the selected subclass returns particular values, which would then be set to the target.
Description & Motivation
Is it possible to dynamically link arguments in the
LightningCLI
, say, depending on the module or datamodule subclass that is specified in a config file or at the command line?Pitch
No response
Alternatives
No response
Additional context
No response
cc @Borda @carmocca @mauvilsa
The text was updated successfully, but these errors were encountered: