mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
wavegrad refactoring, fixing tests for glow-tts and wavegrad
This commit is contained in:
1 parent
946a0c0fb9
commit
39c71ee8a9
6 files changed
+49
-56
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user