torch.kaiser_window
- torch.kaiser_window(window_length, periodic=True, beta=12.0, *, dtype=None, layout=torch.strided, device,
Computes the Kaiser window with window length window_length and shape parameter beta.
Let I_0 be the zeroth order modified Bessel function of the first kind (see torch.i0()) and
N = L - 1 if periodic is False and L if periodic is True,
where L is the window_length. This function computes:
Calling torch.kaiser_window(L, B, periodic=True) is equivalent to calling
torch.kaiser_window(L + 1, B, periodic=False)[:-1]).
The periodic argument is intended as a helpful shorthand
to produce a periodic window as input to functions like torch.stft().
dtype (torch.dtype, optional) – the desired data type of returned tensor.
Default: if , uses a global default (see ).
Nonelayout (torch.layout, optional) – the desired layout of returned window tensor. Only
torch.strided (dense layout) is supported.
device (torch.device, optional) – the desired device of returned tensor.
Default: if None, uses the current device for the default tensor type
(see torch.set_default_device()). device will be the CPU
for CPU tensor types and the current CUDA device for CUDA tensor types.
requires_grad (bool, optional) – If autograd should record operations on the
returned tensor. Default: False.