New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] hydra.job.id
cannot be used in hydra.sweep.dir
#1302
Comments
This is even worst when not sweeping actually:
As you see there are no error raised, but |
This is not a bug. In fact, it makes no sense at all if you think about it because sweeping on two jobs, with two different ids - you would end up with two different hydra.sweep.dir results even though it's created once when the sweep starts.
The Launcher and Sweeper are not used at all when you run without -m. Those variables are not populated outside of --multirun. |
Thanks for both clarifications! I knew that they were not populated without -m (or rather that they returned Also in the docs it might be worth mentioning that
For me a "serial job number" and "active hydra launcher" are not necessarily linked to a sweep. Anyways I'm closing it as I see that |
Yeah - I am considering changing the behavior to always use a the Launcher. |
I think it would be more natural, although I understand that it directly impacts the user. That being said, because it always returned |
Two things here:
|
馃悰 Bug
hydra.job.id
cannot be used inhydra.sweep.dir
but it can be used inhydra.sweep.subdir
. The same holds forhydra.job.num
.To reproduce
config.yaml
:test.py
:Command
python test.py -m
** Stack trace/error message **
System information
The text was updated successfully, but these errors were encountered: