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 8ca42d6 commit b6a759eCopy full SHA for b6a759e
source-code/hydra/conf/config.yaml
@@ -1,5 +1,5 @@
1
-verbose: False
2
n: 1
+file: false
3
defaults:
4
- distr: gauss
5
- _self_
source-code/hydra/gen_rand.py
@@ -1,16 +1,13 @@
#!/usr/bin/env python
import hydra
-from omegaconf import OmegaConf
import logging
6
import numpy as np
7
import sys
8
9
10
@hydra.main(version_base=None, config_path='conf/', config_name='config')
11
def gen_rand(cfg):
12
- if cfg.verbose:
13
- print(OmegaConf.to_yaml(cfg), file=sys.stderr)
14
logger = logging.getLogger(__name__)
15
if cfg.n <= 0:
16
logger.error(f'negative number to generate {cfg.n}')
0 commit comments