@@ -155,7 +155,7 @@ class GriffinLim(torch.nn.Module):
155155 | "Signal estimation from modified short-time Fourier transform,"
156156 | IEEE Trans. ASSP, vol.32, no.2, pp.236–243, Apr. 1984.
157157 """
158- __constants__ = ['n_fft' , 'n_iter' , 'win_length' , 'hop_length' , 'power' , 'normalized' ,
158+ __constants__ = ['n_fft' , 'n_iter' , 'win_length' , 'hop_length' , 'power' ,
159159 'length' , 'momentum' , 'rand_init' ]
160160
161161 def __init__ (self ,
@@ -172,7 +172,7 @@ def __init__(self,
172172 super (GriffinLim , self ).__init__ ()
173173
174174 assert momentum < 1 , 'momentum={} > 1 can be unstable' .format (momentum )
175- assert momentum > 0 , 'momentum={} < 0' .format (momentum )
175+ assert momentum >= 0 , 'momentum={} < 0' .format (momentum )
176176
177177 self .n_fft = n_fft
178178 self .n_iter = n_iter
@@ -768,6 +768,7 @@ class Fade(torch.nn.Module):
768768 fade_shape (str, optional): Shape of fade. Must be one of: "quarter_sine",
769769 "half_sine", "linear", "logarithmic", "exponential". (Default: ``"linear"``)
770770 """
771+
771772 def __init__ (self ,
772773 fade_in_len : int = 0 ,
773774 fade_out_len : int = 0 ,
@@ -877,6 +878,7 @@ class FrequencyMasking(_AxisMasking):
877878 example/channel in the batch. (Default: ``False``)
878879 This option is applicable only when the input tensor is 4D.
879880 """
881+
880882 def __init__ (self , freq_mask_param : int , iid_masks : bool = False ) -> None :
881883 super (FrequencyMasking , self ).__init__ (freq_mask_param , 1 , iid_masks )
882884
@@ -891,6 +893,7 @@ class TimeMasking(_AxisMasking):
891893 example/channel in the batch. (Default: ``False``)
892894 This option is applicable only when the input tensor is 4D.
893895 """
896+
894897 def __init__ (self , time_mask_param : int , iid_masks : bool = False ) -> None :
895898 super (TimeMasking , self ).__init__ (time_mask_param , 2 , iid_masks )
896899
0 commit comments