Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
b388d48e
Unverified
Commit
b388d48e
authored
Apr 06, 2021
by
Chin-Yun Yu
Committed by
GitHub
Apr 06, 2021
Browse files
Remove unused normalized constant from T.GriffinLim (#1433)
parent
c6eeebeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
torchaudio/transforms.py
torchaudio/transforms.py
+4
-1
No files found.
torchaudio/transforms.py
View file @
b388d48e
...
...
@@ -155,7 +155,7 @@ class GriffinLim(torch.nn.Module):
| "Signal estimation from modified short-time Fourier transform,"
| IEEE Trans. ASSP, vol.32, no.2, pp.236–243, Apr. 1984.
"""
__constants__
=
[
'n_fft'
,
'n_iter'
,
'win_length'
,
'hop_length'
,
'power'
,
'normalized'
,
__constants__
=
[
'n_fft'
,
'n_iter'
,
'win_length'
,
'hop_length'
,
'power'
,
'length'
,
'momentum'
,
'rand_init'
]
def
__init__
(
self
,
...
...
@@ -768,6 +768,7 @@ class Fade(torch.nn.Module):
fade_shape (str, optional): Shape of fade. Must be one of: "quarter_sine",
"half_sine", "linear", "logarithmic", "exponential". (Default: ``"linear"``)
"""
def
__init__
(
self
,
fade_in_len
:
int
=
0
,
fade_out_len
:
int
=
0
,
...
...
@@ -877,6 +878,7 @@ class FrequencyMasking(_AxisMasking):
example/channel in the batch. (Default: ``False``)
This option is applicable only when the input tensor is 4D.
"""
def
__init__
(
self
,
freq_mask_param
:
int
,
iid_masks
:
bool
=
False
)
->
None
:
super
(
FrequencyMasking
,
self
).
__init__
(
freq_mask_param
,
1
,
iid_masks
)
...
...
@@ -891,6 +893,7 @@ class TimeMasking(_AxisMasking):
example/channel in the batch. (Default: ``False``)
This option is applicable only when the input tensor is 4D.
"""
def
__init__
(
self
,
time_mask_param
:
int
,
iid_masks
:
bool
=
False
)
->
None
:
super
(
TimeMasking
,
self
).
__init__
(
time_mask_param
,
2
,
iid_masks
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment