mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
set requires_grad=False
This commit is contained in:
1 parent
c96f7a2614
commit
b2b4828f17
1 file changed
+2
-1
@@ -11,7 +11,8 @@ class TorchSTFT(nn.Module):
|
||||
self.n_fft = n_fft
|
||||
self.hop_length = hop_length
|
||||
self.win_length = win_length
|
||||
self.window = nn.Parameter(getattr(torch, window)(win_length))
|
||||
self.window = nn.Parameter(getattr(torch, window)(win_length),
|
||||
requires_grad=False)
|
||||
|
||||
def __call__(self, x):
|
||||
# B x D x T x 2
|
||||
|
||||
Reference in new issue
Block a user