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
aa4772ed
"vscode:/vscode.git/clone" did not exist on "32f95c77f7cc6daa750221b37f14ded9973b886c"
Commit
aa4772ed
authored
Sep 17, 2019
by
engineerchuan
Committed by
Vincent QB
Sep 17, 2019
Browse files
Small documentation tweak of [0, 1] to [-1, 1] (#283)
parent
a2d35df2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
torchaudio/__init__.py
torchaudio/__init__.py
+1
-1
torchaudio/sox_effects.py
torchaudio/sox_effects.py
+1
-1
No files found.
torchaudio/__init__.py
View file @
aa4772ed
...
...
@@ -34,7 +34,7 @@ def load(filepath,
filepath (str or pathlib.Path): Path to audio file
out (torch.Tensor, optional): An output tensor to use instead of creating one. (Default: ``None``)
normalization (bool, number, or callable, optional): If boolean `True`, then output is divided by `1 << 31`
(assumes signed 32-bit audio), and normalizes to `[
0
, 1]`.
(assumes signed 32-bit audio), and normalizes to `[
-1
, 1]`.
If `number`, then output is divided by that number
If `callable`, then the output is passed as a parameter
to the given function, then the output is divided by
...
...
torchaudio/sox_effects.py
View file @
aa4772ed
...
...
@@ -31,7 +31,7 @@ class SoxEffectsChain(object):
Args:
normalization (bool, number, or callable, optional): If boolean `True`, then output is divided by `1 << 31`
(assumes signed 32-bit audio), and normalizes to `[
0
, 1]`. If `number`, then output is divided by that
(assumes signed 32-bit audio), and normalizes to `[
-1
, 1]`. If `number`, then output is divided by that
number. If `callable`, then the output is passed as a parameter to the given function, then the
output is divided by the result. (Default: ``True``)
channels_first (bool, optional): Set channels first or length first in result. (Default: ``True``)
...
...
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