mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix inf issue
This commit is contained in:
parent
950cd4a3e8
commit
c92d9d72aa
@ -901,6 +901,7 @@ class Decorrelate(torch.nn.Module):
|
|||||||
if random.random() > apply_prob:
|
if random.random() > apply_prob:
|
||||||
return x
|
return x
|
||||||
with torch.cuda.amp.autocast(enabled=False):
|
with torch.cuda.amp.autocast(enabled=False):
|
||||||
|
x = x.to(torch.float32)
|
||||||
ans = DecorrelateFunction.apply(x, self.cov.clone(),
|
ans = DecorrelateFunction.apply(x, self.cov.clone(),
|
||||||
self.scale, self.eps, self.beta,
|
self.scale, self.eps, self.beta,
|
||||||
self.channel_dim) # == x.
|
self.channel_dim) # == x.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user