mirror of
https://github.com/wassname/TTS.git
synced 2026-09-12 12:11:47 +08:00
Set attention norm method by config.json
This commit is contained in:
@@ -38,7 +38,7 @@ class CBHGTests(unittest.TestCase):
|
||||
|
||||
class DecoderTests(unittest.TestCase):
|
||||
def test_in_out(self):
|
||||
layer = Decoder(in_features=256, memory_dim=80, r=2, memory_size=4, attn_windowing=False)
|
||||
layer = Decoder(in_features=256, memory_dim=80, r=2, memory_size=4, attn_windowing=False, attn_norm="sigmoid")
|
||||
dummy_input = T.rand(4, 8, 256)
|
||||
dummy_memory = T.rand(4, 2, 80)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user