Mojo function
argmax
argmax(input: NDBuffer[type, rank, shape, strides, address_space], axis: Int, output: NDBuffer[type, rank, shape, strides, address_space])
Finds the indices of the maximum element along the specified axis.
Args:
- βinput (
NDBuffer[type, rank, shape, strides, address_space]
): The input tensor. - βaxis (
Int
): The axis. - βoutput (
NDBuffer[type, rank, shape, strides, address_space]
): The output tensor.
argmax(input: NDBuffer[type, rank, shape, strides, address_space], axis_buf: NDBuffer[type, rank, shape, strides, address_space], output: NDBuffer[type, rank, shape, strides, address_space])
Finds the indices of the maximum element along the specified axis.
Args:
- βinput (
NDBuffer[type, rank, shape, strides, address_space]
): The input tensor. - βaxis_buf (
NDBuffer[type, rank, shape, strides, address_space]
): The axis tensor. - βoutput (
NDBuffer[type, rank, shape, strides, address_space]
): The axis tensor.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?