Skip to content

Commit

Permalink
Fix time error (#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codle authored May 3, 2022
1 parent a8d26d6 commit a3b9003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/pipe/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def train_batch(self, data_iter=None):

if self.global_steps % self.steps_per_print() == 0:
if self.global_rank == 0:
elapsed = self.timers('train_batch').elapsed(reset=True)
elapsed = self.timers('train_batch').elapsed(reset=True) / 1000.0
iter_time = elapsed / self.steps_per_print()
tput = self.train_batch_size() / iter_time
print(f'steps: {self.global_steps} '
Expand Down

0 comments on commit a3b9003

Please sign in to comment.