diff --git a/_modules/onmt/trainer.html b/_modules/onmt/trainer.html index 5214b87b..d5e99f31 100644 --- a/_modules/onmt/trainer.html +++ b/_modules/onmt/trainer.html @@ -558,12 +558,12 @@

Source code for onmt.trainer

                         valid_stats=valid_stats,
                     )
 
-                # Run patience mechanism
-                if self.earlystopper is not None:
-                    self.earlystopper(valid_stats, step)
-                    # If the patience has reached the limit, stop training
-                    if self.earlystopper.has_stopped():
-                        break
+            #     # Run patience mechanism
+            #     if self.earlystopper is not None:
+            #         self.earlystopper(valid_stats, step)
+            #         # If the patience has reached the limit, stop training
+            #         if self.earlystopper.has_stopped():
+            #             break
 
             if self.model_saver is not None and (save_checkpoint_steps != 0 and step % save_checkpoint_steps == 0):
                 self.model_saver.save(step, moving_average=self.moving_average)
@@ -628,7 +628,7 @@ 

Source code for onmt.trainer

         for p in self.model.parameters():
             if hasattr(p, 'has_grad'):
                 p.has_grad = False
-        
+
         return stats
def _gradient_accumulation_over_lang_pairs(