mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
set requires_grad=False
This commit is contained in:
@@ -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