Przeglądaj źródła

Let model fail on non-inf loss

Lengyue 2 lat temu
rodzic
commit
7031d18b3d
1 zmienionych plików z 0 dodań i 1 usunięć
  1. 0 1
      speech_lm/train.py

+ 0 - 1
speech_lm/train.py

@@ -138,7 +138,6 @@ def train(
                 optimizer,
                 max_norm=cfg.schedule.clip_grad_norm,
                 norm_type=2.0,
-                error_if_nonfinite=False,
             )
 
             # We can't average gradients across multiple steps