Skip to main content
Log in

Mojo function

transpose_matrix

transpose_matrix(matrix: Symbol) -> Symbol

Transposes the last two dimensions of a symbolic tensor.

Args:

  • matrix (Symbol): The symbolic tensor to transpose.

Returns:

A new symbolic tensor with its last two dimensions transposed. It has the same elements and dtype, but the order of the elements is different according to the transposition.

Was this page helpful?