Explorar o código

Fix incorrect batch time

Lengyue %!s(int64=2) %!d(string=hai) anos
pai
achega
8f75f764ad
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      speech_lm/train.py

+ 1 - 0
speech_lm/train.py

@@ -122,6 +122,7 @@ def train(
             trackers["model_time"].append(time.time() - model_begin_time)
 
             if is_accumulating:
+                last_batch_time = time.time()
                 continue
 
             # Check all trackers has the same length