Skip to content

How to use interpolation at hydra.job.env_set #2508

Answered by Jasha10
YoshikiKubotani asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @YoshikiKubotani,

Some parts of the top-level hydra config are computed early on, before the user job's config is computed.
As an example of why this is necessary, the hydra.searchpath key will influence how the user's job config is composed, so it's necessary to compute hydra.searchpath before beginning composition of the job's config.

My suspicion is that Hydra is trying to read from the hydra.job.env_set variable before the job config has been computed (and thus before the device key has been set to 1).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@YoshikiKubotani
Comment options

@Jasha10
Comment options

Jasha10 Dec 21, 2022
Collaborator

@YoshikiKubotani
Comment options

Answer selected by YoshikiKubotani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants