wavegrad refactoring, fixing tests for glow-tts and wavegrad

This commit is contained in:
erogol
2020-10-29 15:47:15 +01:00
parent 946a0c0fb9
commit 39c71ee8a9
6 changed files with 49 additions and 56 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ class GE2ELossTests(unittest.TestCase):
assert output.item() >= 0.0
# check speaker loss with orthogonal d-vectors
dummy_input = T.empty(3, 64)
dummy_input = T.nn.init.orthogonal(dummy_input)
dummy_input = T.nn.init.orthogonal_(dummy_input)
dummy_input = T.cat(
[
dummy_input[0].repeat(5, 1, 1).transpose(0, 1),
@@ -91,7 +91,7 @@ class AngleProtoLossTests(unittest.TestCase):
# check speaker loss with orthogonal d-vectors
dummy_input = T.empty(3, 64)
dummy_input = T.nn.init.orthogonal(dummy_input)
dummy_input = T.nn.init.orthogonal_(dummy_input)
dummy_input = T.cat(
[
dummy_input[0].repeat(5, 1, 1).transpose(0, 1),