Skip to content

Should there be a matrix check in ggml_transpose? #757

Answered by slaren
crnsh asked this question in Q&A
Discussion options

You must be logged in to vote

ggml_tranpose swaps the first two dimensions of the tensor. That is usually fine even if the tensor has a higher dimension than 2, since the other dimensions are usually the batch size. So what you end with is a batch of transposed matrices, which is generally what you want. As you say, ggml_permute can be used for more advanced transposes that apply to any dimensions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crnsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants