torch.Tensor.Tensor.quantile
Tensor.quantile(q: number | number[]): Tensor<readonly [], D, Dev>Tensor.quantile(q: number | number[], dim: number, keepdim: boolean, interpolation: 'linear' | 'lower' | 'higher' | 'nearest' | 'midpoint', options: QuantileOptions): Tensor<DynamicShape, D, Dev>Computes the q-th quantile of the data along the specified dimension.
Parameters
qnumber | number[]- Quantile to compute (between 0 and 1)
Returns
Tensor<readonly [], D, Dev>– Quantile tensor