torch.quantile
function quantile<S extends readonly number[]>(input: Tensor<S>, q: number | number[]): Tensorfunction quantile(input: Tensor, q: number | number[], dim: number, keepdim: boolean, interpolation: 'linear' | 'lower' | 'higher' | 'nearest' | 'midpoint', options: QuantileOptions): TensorComputes the q-th quantiles of each row of the input tensor.
Parameters
inputTensor<S>- The input tensor
qnumber | number[]- Quantile(s) to compute, value(s) between 0 and 1
Returns
Tensor– Quantile values