fix optuna config and prevent double logging

This commit is contained in:
hobogalaxy committed 2021-03-10 17:48:23 +01:00
1 parent b1e0bf9717
commit 5f57eb7875
4 files changed
+12 -23

No files matched your search

+4
View File
@@ -24,6 +24,10 @@ def extras(config: DictConfig):
# make it possible to add new keys to config
OmegaConf.set_struct(config, False)
# fix double logging bug (this will be removed when lightning releases patch)
pl_logger = logging.getLogger('lightning')
pl_logger.propagate = False
# [OPTIONAL] Disable python warnings if <config.disable_warnings=True>
if config.get("disable_warnings"):