(cfg, name=None)
| 69 | |
| 70 | |
| 71 | def get_logger(cfg, name=None): |
| 72 | # log_file_path is used when unit testing |
| 73 | if is_logging_process(): |
| 74 | logging.config.dictConfig( |
| 75 | OmegaConf.to_container(cfg.job_logging_cfg, resolve=True) |
| 76 | ) |
| 77 | return logging.getLogger(name) |
| 78 | |
| 79 | |
| 80 | def count_parameters(model, top_k=15): |
nothing calls this directly
no test coverage detected