Skip to main content

Mojo function

maximum

maximum[BN: Int, //, *, width: Int = 4](x: LayoutTensor[DType.float32, Layout.row_major(BN), MutAnyOrigin, address_space=AddressSpace.LOCAL]) -> StaticTuple[Float32, width]

Returns:

StaticTuple

maximum[BN: Int, //, *, width: Int = 4](x: LayoutTensor[DType.float32, Layout.row_major(BN), MutAnyOrigin, address_space=AddressSpace.LOCAL], init: StaticTuple[Float32, width]) -> StaticTuple[Float32, width]

Returns:

StaticTuple

maximum(x: StaticTuple[Float32, 4]) -> Float32

Returns:

Float32

maximum(x: StaticTuple[Float32, 4], init: Float32) -> Float32

Returns:

Float32

Was this page helpful?