Browse Source

Fix incorrect batch time

Lengyue 2 years ago
parent
commit
8f75f764ad
1 changed files with 1 additions and 0 deletions
  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)
             trackers["model_time"].append(time.time() - model_begin_time)
 
 
             if is_accumulating:
             if is_accumulating:
+                last_batch_time = time.time()
                 continue
                 continue
 
 
             # Check all trackers has the same length
             # Check all trackers has the same length