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
34696b14
Unverified
Commit
34696b14
authored
Nov 18, 2020
by
Krishna Kalyan
Committed by
GitHub
Nov 18, 2020
Browse files
Argument in griffinlim is not used (#1036)
Co-authored-by:
krishnakalyan3
<
skalyan@cloudera.com
>
parent
b5c16d33
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
torchaudio/functional/functional.py
torchaudio/functional/functional.py
+6
-0
No files found.
torchaudio/functional/functional.py
View file @
34696b14
...
@@ -139,6 +139,12 @@ def griffinlim(
...
@@ -139,6 +139,12 @@ def griffinlim(
assert
momentum
<
1
,
'momentum={} > 1 can be unstable'
.
format
(
momentum
)
assert
momentum
<
1
,
'momentum={} > 1 can be unstable'
.
format
(
momentum
)
assert
momentum
>=
0
,
'momentum={} < 0'
.
format
(
momentum
)
assert
momentum
>=
0
,
'momentum={} < 0'
.
format
(
momentum
)
if
normalized
:
warnings
.
warn
(
"The argument normalized is not used in Griffin-Lim, "
"and will be removed in v0.9.0 release. To suppress this warning, "
"please use `normalized=False`."
)
# pack batch
# pack batch
shape
=
specgram
.
size
()
shape
=
specgram
.
size
()
specgram
=
specgram
.
reshape
([
-
1
]
+
list
(
shape
[
-
2
:]))
specgram
=
specgram
.
reshape
([
-
1
]
+
list
(
shape
[
-
2
:]))
...
...
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