IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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

get_min_max_value

def get_min_max_value[vec_size: Int, block_size: Int, dtype: DType](in_data: TileTensor[dtype, Engine=in_data.Engine, address_space=in_data.address_space, linear_idx_type=in_data.linear_idx_type], row_idx: Int, d: Int) -> Tuple[Float32, Float32]

Compute the minimum and maximum values from input data using block reduction.

Parameters:

  • ​vec_size (Int): Number of elements each thread processes per iteration (vectorization width).
  • ​block_size (Int): Number of threads per block.
  • ​dtype (DType): The dtype of the input data.

Args:

Returns:

Tuple[Float32, Float32]: Tuple containing [min_val, max_val].

Was this page helpful?