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
5c9d33de
Unverified
Commit
5c9d33de
authored
Jul 18, 2019
by
cpuhrsch
Committed by
GitHub
Jul 18, 2019
Browse files
Hotfix due to PyTorch JIT issue (#149)
parents
4beb982f
5033fdd0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
build_tools/travis/test_script.sh
build_tools/travis/test_script.sh
+1
-1
torchaudio/functional.py
torchaudio/functional.py
+2
-1
No files found.
build_tools/travis/test_script.sh
View file @
5c9d33de
...
...
@@ -9,7 +9,7 @@ python --version
run_tests
()
{
# find all the test files that match "test*.py"
TEST_FILES
=
"
$(
find
test
/
-type
f
-name
"test*.py"
|
sort
)
"
TEST_FILES
=
"
$(
find
test
-type
f
-name
"test*.py"
|
sort
)
"
echo
"Test files are:"
echo
$TEST_FILES
...
...
torchaudio/functional.py
View file @
5c9d33de
...
...
@@ -101,7 +101,8 @@ def LC2CL(tensor):
"""
return
tensor
.
transpose
(
0
,
1
).
contiguous
()
# TODO: remove this once https://github.com/pytorch/pytorch/issues/21478 gets solved
@
torch
.
jit
.
ignore
def
_stft
(
input
,
n_fft
,
hop_length
,
win_length
,
window
,
center
,
pad_mode
,
normalized
,
onesided
):
# type: (Tensor, int, Optional[int], Optional[int], Optional[Tensor], bool, str, bool, bool) -> Tensor
return
torch
.
stft
(
input
,
n_fft
,
hop_length
,
win_length
,
window
,
center
,
pad_mode
,
normalized
,
onesided
)
...
...
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