mirror of https://github.com/coqui-ai/TTS.git
glow-tts fix for saving inverse weight
This commit is contained in:
parent
3d30dae8f3
commit
5c87753e88
|
@ -128,8 +128,9 @@ class InvConvNear(nn.Module):
|
||||||
return z, logdet
|
return z, logdet
|
||||||
|
|
||||||
def store_inverse(self):
|
def store_inverse(self):
|
||||||
self.weight_inv = torch.inverse(
|
weight_inv = torch.inverse(
|
||||||
self.weight.float()).to(dtype=self.weight.dtype)
|
self.weight.float()).to(dtype=self.weight.dtype)
|
||||||
|
self.weight_inv = nn.Parameter(weight_inv, requires_grad=False)
|
||||||
|
|
||||||
|
|
||||||
class CouplingBlock(nn.Module):
|
class CouplingBlock(nn.Module):
|
||||||
|
|
Loading…
Reference in New Issue