0

Is there a way to define the default config in the hydra decorator and w/o saving it to any yaml file? For some small scripts it might be very hande.

Something like this:

@hydra.main(default={var1='default_value1', var2='xxx'}) 
def main(cfg):
    pass

Temak
  • 2,929
  • 36
  • 49

1 Answers1

0

There is no way to define "the default config in the hydra decorator" in the way you presented it.

However, but take a look at the Structured Configs tutorial. The first page there is similar in spirit to what you seem to be asking for.

Omry Yadan
  • 31,280
  • 18
  • 64
  • 87