# max

`import { max } from "destack:tensor";`

Return maximum values of `tensor` along the axes in `axisSet`.

```ds title="max"
export declare function max<T, const Rank: usize, const AxisCount: usize, const OutRank: usize = Rank - AxisCount>(tensor: Tensor<T, Rank>, axisSet: AxisSet<AxisCount>, options?: TensorReduceOptions<T, OutRank> | undefined): Tensor<T, OutRank>
```

[language/library/src/tensor/ops.ds:342:351](https://github.com/destack-sh/destack/blob/main/language/library/src/tensor/ops.ds#L342-L351)
