Skip to content

Commit

Permalink
[utils] disable step_save unless explicitly configed in YAML (#2286)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingchensong authored Jan 9, 2024
1 parent 57f4b7d commit 8ab5354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wenet/utils/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def train(self, model, optimizer, scheduler, train_data_loader,
info_dict = update_parameter_and_lr(model, optimizer,
scheduler, scaler,
info_dict)
save_interval = info_dict.get('save_interval', 10000)
save_interval = info_dict.get('save_interval', 100000000000000)
if self.step % save_interval == 0 and self.step != 0 \
and (batch_idx + 1) % info_dict["accum_grad"] == 0:
total_loss, num_seen_utts = self.cv(
Expand Down

0 comments on commit 8ab5354

Please sign in to comment.