mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-07 16:14:17 +00:00
Symmetrize covariance
This commit is contained in:
parent
9133b57808
commit
c923b5900e
@ -259,5 +259,5 @@ class OrthogonalTransformation(nn.Module):
|
||||
@torch.no_grad()
|
||||
def get_transformation_out(self) -> Tensor:
|
||||
# see also get_transformation() above for notes on this.
|
||||
cov = self.feats_cov
|
||||
cov = 0.5 * (self.feats_cov + self.feats_cov.t()) # make sure symmetric
|
||||
return get_transformation(cov)
|
||||
|
Loading…
x
Reference in New Issue
Block a user