Shortcuts

ComputeDeltas

class torchaudio.transforms.ComputeDeltas(win_length: int = 5, mode: str = 'replicate')[source]

Compute delta coefficients of a tensor, usually a spectrogram.

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript

See torchaudio.functional.compute_deltas for more details.

Parameters
  • win_length (int, optional) – The window length used for computing delta. (Default: 5)

  • mode (str, optional) – Mode parameter passed to padding. (Default: "replicate")

forward(specgram: Tensor) Tensor[source]
Parameters

specgram (Tensor) – Tensor of audio of dimension (…, freq, time).

Returns

Tensor of deltas of dimension (…, freq, time).

Return type

Tensor

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources