Skip to content

Commit

Permalink
small fix for NMT build job
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Sep 3, 2024
1 parent 368120f commit 1b848ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/jobs/nmt_engine_build_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _train_model(
) as model_trainer:
model_trainer.train(progress=phase_progress, check_canceled=check_canceled)
model_trainer.save()
train_corpus_size = model_trainer.stats.train_corpus_size
train_corpus_size = parallel_corpus.count()
return train_corpus_size, float("nan")

def _batch_inference(
Expand Down

0 comments on commit 1b848ec

Please sign in to comment.