torch.WindowOptions
export interface WindowOptions {
/** If True, returns a periodic window (for spectral analysis). Default: True */
periodic?: boolean;
/** The desired dtype of the window. Default: 'float32' */
dtype?: DType;
/** Not used (for PyTorch API compatibility) */
layout?: unknown;
/** Device to place the tensor on. Default: 'webgpu' */
device?: 'webgpu' | 'cpu';
/** Not used (for PyTorch API compatibility) */
requires_grad?: boolean;
}periodic(boolean)optional- – If True, returns a periodic window (for spectral analysis). Default: True
dtype(DType)optional- – The desired dtype of the window. Default: 'float32'
layout(unknown)optional- – Not used (for PyTorch API compatibility)
device('webgpu' | 'cpu')optional- – Device to place the tensor on. Default: 'webgpu'
requires_grad(boolean)optional- – Not used (for PyTorch API compatibility)
Options for window functions.