mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Convert batch index to int
This commit is contained in:
parent
2c0cec86a3
commit
286b2021c2
@ -858,7 +858,7 @@ def train_one_epoch(
|
||||
# NOTE: We use reduction==sum and loss is computed over utterances
|
||||
# in the batch and there is no normalization to it so far.
|
||||
scaler.scale(loss).backward()
|
||||
if params.batch_idx_train % 10 == 0:
|
||||
if int(params.batch_idx_train) % 10 == 0:
|
||||
set_batch_count(model, params.batch_idx_train)
|
||||
scheduler.step_batch(params.batch_idx_train)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user