Skip to content

Commit

Permalink
update log freq
Browse files Browse the repository at this point in the history
  • Loading branch information
FeixLiu committed Oct 12, 2022
1 parent 03248eb commit db8a41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppfleetx/core/engine/eager_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _train_one_epoch(self,
self._train_steps += 1
train_losses.append(loss)

if (step + 1) % self._logging_freq == 0 or (step + 1) % self._accumulate_steps == 0:
if (step + 1) % (self._logging_freq * self._accumulate_steps) == 0:
# Sync for profile time, delete it may be a little faster
paddle.device.cuda.synchronize()
train_costs = time.time() - train_start
Expand Down

0 comments on commit db8a41c

Please sign in to comment.