An error occurred while loading the file. Please try again.
-
Michał Pogoda authoredfbe7e76e
print_config.py 395 B
"""Utility script for printing Hydra config."""
import json
import hydra
from omegaconf import OmegaConf
@hydra.main(config_path="config", config_name="config")
def main(cfg):
"""Main function."""
cfg_resolved = OmegaConf.to_container(cfg, resolve=True)
cfg_resolved_json = json.dumps(cfg_resolved, indent=4)
print(cfg_resolved_json)
if __name__ == "__main__":
main()