mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix issue with warmup in test time
This commit is contained in:
parent
97bc894f62
commit
9c1a239931
@ -401,7 +401,9 @@ class ConformerEncoder(nn.Module):
|
||||
batch = self.count.item()
|
||||
if self.training:
|
||||
self.count += 1
|
||||
return min(1.0, batch / self.warmup_batches)
|
||||
return min(1.0, batch / self.warmup_batches)
|
||||
else:
|
||||
return 1.0 # this is mostly a workaround for an issue with moderl averaging.
|
||||
|
||||
|
||||
def forward(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user