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
argmax
def argmax(input: TileTensor[Engine=input.Engine, address_space=input.address_space, linear_idx_type=input.linear_idx_type], axis: Int, output: TileTensor[Engine=output.Engine, address_space=output.address_space, linear_idx_type=output.linear_idx_type], ctx: Optional[DeviceContext[CompilationTarget()]] = None)
Finds the indices of the maximum element along the specified axis.
Args:
- βinput (
TileTensor[Engine=input.Engine, address_space=input.address_space, linear_idx_type=input.linear_idx_type]): The input tensor. - βaxis (
Int): The axis. - βoutput (
TileTensor[Engine=output.Engine, address_space=output.address_space, linear_idx_type=output.linear_idx_type]): The output tensor. - βctx (
Optional[DeviceContext[CompilationTarget()]]): The context to execute the work on.