Skip to content

Commit

Permalink
add default value
Browse files Browse the repository at this point in the history
  • Loading branch information
exx8 committed Mar 14, 2023
1 parent 4c7ba46 commit 2c32405
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ def main():
_logger.warning(
"You've requested to log metrics to wandb but package not found. "
"Metrics not being logged to wandb, try `pip install wandb`")
tensorboard_writer = None
if should_log_to_tensorboard(args):
if has_tensorboard:
tensorboard_writer = SummaryWriter(args.log_tensorboard)
Expand Down

0 comments on commit 2c32405

Please sign in to comment.