mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix bug in get_adjusted_batch_count
This commit is contained in:
parent
b3527fe4ac
commit
c7107ead64
@ -100,8 +100,9 @@ def get_adjusted_batch_count(
|
||||
params: AttributeDict) -> float:
|
||||
# returns the number of batches we would have used so far if we had used the reference
|
||||
# duration. This is for purposes of set_batch_count().
|
||||
return (params.batch_idx_train * params.ref_duration /
|
||||
(params.max_duration * params.world_size))
|
||||
return (params.batch_idx_train * (params.max_duration * params.world_size) /
|
||||
params.ref_duration)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user