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
9c484027
Unverified
Commit
9c484027
authored
Dec 23, 2020
by
Aziz
Committed by
GitHub
Dec 23, 2020
Browse files
[Doc] Fix the return type for load functions (#1122)
parent
58ef8fb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
torchaudio/backend/_soundfile_backend.py
torchaudio/backend/_soundfile_backend.py
+1
-1
torchaudio/backend/sox_io_backend.py
torchaudio/backend/sox_io_backend.py
+1
-1
No files found.
torchaudio/backend/_soundfile_backend.py
View file @
9c484027
...
...
@@ -104,7 +104,7 @@ def load(
Not used. PySoundFile does not accept format hint.
Returns:
torch.Tensor
:
Tuple[
torch.Tensor
, int]: Resulting Tensor and sample rate.
If the input file has integer wav format and normalization is off, then it has
integer type, else ``float32`` type. If ``channels_first=True``, it has
``[channel, time]`` else ``[time, channel]``.
...
...
torchaudio/backend/sox_io_backend.py
View file @
9c484027
...
...
@@ -107,7 +107,7 @@ def load(
from header or extension,
Returns:
torch.Tensor
:
Tuple[
torch.Tensor
, int]: Resulting Tensor and sample rate.
If the input file has integer wav format and normalization is off, then it has
integer type, else ``float32`` type. If ``channels_first=True``, it has
``[channel, time]`` else ``[time, channel]``.
...
...
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