try even more deactivation

This commit is contained in:
robcaulk
2023-05-14 15:44:41 +00:00
parent 73e9047cd5
commit 1ed084557a
2 changed files with 2 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ def get_timerange_backtest_live_models(config: Config) -> str:
def get_tb_logger(model_type: str, path: Path, activate: bool) -> Union[TBLogger,
BaseTensorboardLogger]:
tb_logger: Union[TBLogger, BaseTensorboardLogger]
if model_type == "pytorch":
if model_type == "pytorch" and activate:
tb_logger = TBLogger(path, activate)
else:
tb_logger = BaseTensorboardLogger(path, activate)