Commit ba683bd1 authored by hwangjeff's avatar hwangjeff Committed by Facebook GitHub Bot
Browse files

Add feature badges to preemphasis and deemphasis functions (#2892)

Summary:
Adds feature badges to preemphasis and deemphasis functions

Pull Request resolved: https://github.com/pytorch/audio/pull/2892

Reviewed By: carolineechen

Differential Revision: D41830782

Pulled By: hwangjeff

fbshipit-source-id: 487ce9afa8dc8fe321aa9e02cc88bb1453985d39
parent 29ecf7e8
...@@ -354,6 +354,10 @@ def preemphasis(waveform, coeff: float = 0.97) -> torch.Tensor: ...@@ -354,6 +354,10 @@ def preemphasis(waveform, coeff: float = 0.97) -> torch.Tensor:
.. math:: .. math::
y[i] = x[i] - \text{coeff} \cdot x[i - 1] y[i] = x[i] - \text{coeff} \cdot x[i - 1]
.. devices:: CPU CUDA
.. properties:: Autograd TorchScript
Args: Args:
waveform (torch.Tensor): Waveform, with shape `(..., N)`. waveform (torch.Tensor): Waveform, with shape `(..., N)`.
coeff (float, optional): Pre-emphasis coefficient. Typically between 0.0 and 1.0. coeff (float, optional): Pre-emphasis coefficient. Typically between 0.0 and 1.0.
...@@ -375,6 +379,10 @@ def deemphasis(waveform, coeff: float = 0.97) -> torch.Tensor: ...@@ -375,6 +379,10 @@ def deemphasis(waveform, coeff: float = 0.97) -> torch.Tensor:
.. math:: .. math::
y[i] = x[i] + \text{coeff} \cdot y[i - 1] y[i] = x[i] + \text{coeff} \cdot y[i - 1]
.. devices:: CPU CUDA
.. properties:: Autograd TorchScript
Args: Args:
waveform (torch.Tensor): Waveform, with shape `(..., N)`. waveform (torch.Tensor): Waveform, with shape `(..., N)`.
coeff (float, optional): De-emphasis coefficient. Typically between 0.0 and 1.0. coeff (float, optional): De-emphasis coefficient. Typically between 0.0 and 1.0.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment