Skip to content

Commit f404b3d

Browse files
committed
train.py: offseting tensorboard iterator count
1 parent d2c2511 commit f404b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def train(num_gpus, rank, group_name, output_directory, epochs, learning_rate,
140140

141141
print("{}:\t{:.9f}".format(iteration, reduced_loss))
142142
if with_tensorboard and rank == 0:
143-
logger.add_scalar('training_loss', reduced_loss, i)
143+
logger.add_scalar('training_loss', reduced_loss, i + len(train_loader) * epoch)
144144

145145
if (iteration % iters_per_checkpoint == 0):
146146
if rank == 0:

0 commit comments

Comments
 (0)