File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ multiruns and so on.
14
14
1 . ` config.yaml ` : configuration file with the defaults.
15
15
1 . ` distr/gauss.yaml ` : configuration file for the Gaussian distirubtion.
16
16
1 . ` distr/uniform.yaml ` : configuration file for the uniform distirubtion.
17
+ 1 . ` debug.py ` : Python script that simply prints the configuration settings for
18
+ debugging purposes.
17
19
18
20
## How to use it?
19
21
Run with configuratino file settings:
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+
3
+ from omegaconf import DictConfig , OmegaConf
4
+ import hydra
5
+
6
+ @hydra .main (version_base = None , config_path = 'conf/' , config_name = 'config' )
7
+ def my_app (cfg ):
8
+ print (OmegaConf .to_yaml (cfg ))
9
+
10
+ if __name__ == '__main__' :
11
+ my_app ()
You can’t perform that action at this time.
0 commit comments