mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
875c436bf3
commit
1754bf0cd7
Binary file not shown.
@ -1063,7 +1063,7 @@ def train_one_epoch(
|
|||||||
try: loss_info.reduce(loss.device)
|
try: loss_info.reduce(loss.device)
|
||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
logging.info(loss_info)
|
print(loss_info)
|
||||||
|
|
||||||
numel = params.world_size / (params.accum_grads * loss_info["utterances"])
|
numel = params.world_size / (params.accum_grads * loss_info["utterances"])
|
||||||
loss *= numel ## normalize loss over utts(batch size)
|
loss *= numel ## normalize loss over utts(batch size)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user