mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-08 08:34:19 +00:00
Symmetrize covariance
This commit is contained in:
parent
9133b57808
commit
c923b5900e
@ -259,5 +259,5 @@ class OrthogonalTransformation(nn.Module):
|
|||||||
@torch.no_grad()
|
@torch.no_grad()
|
||||||
def get_transformation_out(self) -> Tensor:
|
def get_transformation_out(self) -> Tensor:
|
||||||
# see also get_transformation() above for notes on this.
|
# 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)
|
return get_transformation(cov)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user