How to get the current index and total runs in a multirun? #2760
Unanswered
kunaltyagi
asked this question in
Q&A
Replies: 2 comments 6 replies
-
It may be in from hydra.core.hydra_config import HydraConfig
from omegaconf import OmegaConf
hydra_cfg = HydraConfig.get()
print(OmegaConf.to_yaml(hydra_cfg)) |
Beta Was this translation helpful? Give feedback.
6 replies
-
A simple solution for hydra v1.2: The value is stored in the hydra config: |
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
Uh oh!
There was an error while loading. Please reload this page.
-
If I start a run with
python main.py -m +x="range(0,3)"
, I wish to get that there are 3 runs in total, with the current run beingi
(in {1,2,3} or {0,1,2}: doesn't matter).I don't see any documentation for this. Is this possible? If not, how can this be achieved?
Beta Was this translation helpful? Give feedback.
All reactions