Replies: 2 comments 1 reply
-
Hi, Doesn't your
...
@hydra.main(...)
def my_app(cfg): # <- cfg is the current active config
... |
Beta Was this translation helpful? Give feedback.
1 reply
-
There is no facility to access the user config via a singleton and there wouldn't be one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
when my job is running from a
BasicSweeper
how can I access the current active config from within my code being currently executed?It is possible to access hydra part of the config with
hydra.core.hydra_config.HydraConfig.get()
using the singleton pattern.But the returned dict contains only hydra: settings and lacks user defined variables/configurations
Is there any singleton/globals based method to retrieve user define configuration in a same way?
Thanks a lot in advance!
Beta Was this translation helpful? Give feedback.
All reactions