shithub: opus

Download patch

ref: 8e8edf71bde743c21960a97815f14dd48c86d6ad
parent: 33adba02c7ac5fe1d1f3bd4027f42b87cddc933c
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Sun Oct 1 17:34:58 EDT 2023

Remove unneeded (I think) tanh at the end

--- a/dnn/torch/neural-pitch/models.py
+++ b/dnn/torch/neural-pitch/models.py
@@ -102,8 +102,7 @@
         )
         self.GRU = torch.nn.GRU(input_size=gru_dim, hidden_size=gru_dim, num_layers=1, batch_first=True)
         self.upsample = torch.nn.Sequential(
-            torch.nn.Linear(gru_dim, output_dim),
-            self.activation
+            torch.nn.Linear(gru_dim, output_dim)
         )
 
     def forward(self, x):
--