Skip to content

Commit

Permalink
πŸ› global step
Browse files Browse the repository at this point in the history
  • Loading branch information
vpj committed May 12, 2020
1 parent e62b060 commit 73f294b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Expand Up @@ -198,7 +198,7 @@ def main_train():
with DelayedKeyboardInterrupt():
# Set global step
global_step = epoch * batches + min(batches, (batches * i) // steps_per_epoch)
loop.set_global_step(global_step)
tracker.set_global_step(global_step)

# Last batch to train and validate
train_batch_limit = trainer.x.shape[0] * min(1., (i + 1) / steps_per_epoch)
Expand Down

0 comments on commit 73f294b

Please sign in to comment.