Skip to content

Commit

Permalink
clear cache after translation during scoring
Browse files Browse the repository at this point in the history
  • Loading branch information
vince62s committed Dec 24, 2024
1 parent 1dbf345 commit c23abae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eole/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ def validate(self, valid_iter, moving_average=None):

# Update statistics.
stats.update(metric_stats)
valid_model.decoder._clear_cache()

if moving_average:
for param_data, param in zip(model_params_data, self.model.parameters()):
Expand Down

0 comments on commit c23abae

Please sign in to comment.