Skip to content

Commit 905c55f

Browse files
committed
bug fix
1 parent 0aca27e commit 905c55f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def main():
731731
"You've requested to log metrics to wandb but package not found. "
732732
"Metrics not being logged to wandb, try `pip install wandb`")
733733

734-
if utils.is_primary(args) and args.log_tensorboard:
734+
if should_log_to_tensorboard(args):
735735
if has_tensorboard:
736736
writer = SummaryWriter(args.log_tensorboard)
737737
else:

0 commit comments

Comments
 (0)