-
WIth hydra, I can do something as follows:
This gives me the user specified in the environment variable or null if not found. However, I am unable to do with regular variables like:
Is something like this achievable? |
Beta Was this translation helpful? Give feedback.
Answered by
omry
Feb 24, 2023
Replies: 1 comment
-
Check the OmegaConf select resolver documented here. cfg = OmegaConf.create({
"a": "Saving output to ${oc.select:output,/tmp}"
})
print(cfg.a)
# Saving output to /tmp
cfg.output = "/etc/config"
print(cfg.a)
# Saving output to /etc/config |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dagap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check the OmegaConf select resolver documented here.