# mean

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

Return the mean of `tensor` along the axes in `axisSet`.

```ds title="mean"
export declare function mean<T: Float, 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:232:241](https://github.com/destack-sh/destack/blob/main/language/library/src/tensor/ops.ds#L232-L241)
