torch.nn.functional.max_pool1d_with_indices
function max_pool1d_with_indices(input: Tensor, kernel_size: number | [number], options?: MaxPool1dFunctionalOptions): PoolWithIndicesResultApply 1D max pooling with indices. Returns both the pooled output and the indices of max elements.
Parameters
inputTensorkernel_sizenumber | [number]optionsMaxPool1dFunctionalOptionsoptional