Mojo function
transpose_4d_swap_middle
transpose_4d_swap_middle[rank: Int, dtype: DType, //](output: NDBuffer[dtype, output.origin, output.shape], input: NDBuffer[dtype, input.origin, input.shape, input.strides], perms: UnsafePointer[Scalar[DType.int], perms.origin], simplified_input_shape: IndexList[rank], simplified_rank: Int)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!