latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.kaiser_window
- tensorplay.functional.kaiser_window(window_length, periodic=True, beta=12.0, *, dtype=None, layout=tensorplay.strided, device=None, requires_grad=False) Tensor[source]
Computes the Kaiser window with window length
window_lengthand shape parameterbeta.Let I_0 be the zeroth order modified Bessel function of the first kind (see
tensorplay.i0()) andN = L - 1ifperiodicis False andLifperiodicis True, whereLis thewindow_length. This function computes:Calling
tensorplay.kaiser_window(L, B, periodic=True)is equivalent to callingtensorplay.kaiser_window(L + 1, B, periodic=False)[:-1]). Theperiodicargument is intended as a helpful shorthand to produce a periodic window as input to functions liketensorplay.stft().Note
If
window_lengthis one, then the returned window is a single element tensor containing a one.- Parameters:
- Keyword Arguments:
dtype (
tensorplay.dtype, optional) – the desired data type of returned tensor. Default: ifNone, uses a global default (seetensorplay.set_default_dtype()).layout (
tensorplay.layout, optional) – the desired layout of returned window tensor. Onlytensorplay.strided(dense layout) is supported.device (
tensorplay.device, optional) – the desired device of returned tensor. Default: ifNone, uses the current device for the default tensor type (seetensorplay.set_default_device()).devicewill 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.
Help improve this page
Found an error, an unclear step, or a missing example?

