For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
mean
def mean(src: TileTensor[Engine=src.Engine, address_space=src.address_space, linear_idx_type=src.linear_idx_type]) -> Scalar[src.dtype]
Computes the mean value of the elements in a buffer.
Args:
- src (
TileTensor[Engine=src.Engine, address_space=src.address_space, linear_idx_type=src.linear_idx_type]): The buffer of elements for which the mean is computed.
Returns:
Scalar[src.dtype]: The mean value of the elements in the given buffer.
Raises:
May raise on GPU targets when a device error occurs.