mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
wavegrad refactoring, fixing tests for glow-tts and wavegrad
This commit is contained in:
@@ -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