We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cff20a commit 119d626Copy full SHA for 119d626
source-code/hydra/gen_rand.py
@@ -1,6 +1,8 @@
1
#!/usr/bin/env python
2
3
import hydra
4
+
5
+from omegaconf import OmegaConf
6
import logging
7
import numpy as np
8
import sys
@@ -10,7 +12,7 @@
10
12
@hydra.main(version_base=None, config_path='conf/', config_name='config')
11
13
def gen_rand(cfg):
14
if cfg.verbose:
- print(cfg.pretty(), file=sys.stderr)
15
+ print(OmegaConf.to_yaml(cfg), file=sys.stderr)
16
if cfg.n <= 0:
17
LOG.error(f'negative number to generate {cfg.n}')
18
return 1
0 commit comments