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
2f62e573
Unverified
Commit
2f62e573
authored
Jul 25, 2019
by
jamarshon
Committed by
GitHub
Jul 25, 2019
Browse files
A quick update of docstrings of kaldi.py and transforms.py (#163)
parent
51401084
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
118 deletions
+120
-118
torchaudio/compliance/kaldi.py
torchaudio/compliance/kaldi.py
+115
-112
torchaudio/transforms.py
torchaudio/transforms.py
+5
-6
No files found.
torchaudio/compliance/kaldi.py
View file @
2f62e573
This diff is collapsed.
Click to expand it.
torchaudio/transforms.py
View file @
2f62e573
...
...
@@ -275,7 +275,7 @@ class MuLawEncoding(torch.jit.ScriptModule):
returns a signal encoded with values from 0 to quantization_channels - 1
Args:
quantization_channels (int): Number of channels
. d
efault: 256
quantization_channels (int): Number of channels
(D
efault: 256
)
"""
__constants__
=
[
'quantization_channels'
]
...
...
@@ -303,7 +303,7 @@ class MuLawDecoding(torch.jit.ScriptModule):
and returns a signal scaled between -1 and 1.
Args:
quantization_channels (int): Number of channels
. d
efault: 256
quantization_channels (int): Number of channels
(D
efault: 256
)
"""
__constants__
=
[
'quantization_channels'
]
...
...
@@ -328,10 +328,9 @@ class Resample(torch.nn.Module):
be given.
Args:
orig_freq (float): the original frequency of the signal
new_freq (float): the desired frequency
resampling_method (str): the resampling method (Default: 'kaldi' which uses
sinc interpolation)
orig_freq (float): The original frequency of the signal
new_freq (float): The desired frequency
resampling_method (str): The resampling method (Default: 'sinc_interpolation')
"""
def
__init__
(
self
,
orig_freq
,
new_freq
,
resampling_method
=
'sinc_interpolation'
):
super
(
Resample
,
self
).
__init__
()
...
...
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