-
I am using ggml to implement a model that requires 5d tensor. When I read the ggml.h and ggml.c, it seems that there's no generic permute / transpose that can support arbitrary dimension tensor. What is the suggested way to deal with 5d tensor in ggml? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I am not sure that there is a good way to add a 5th dimension to the tensors. The reality is that lots of the ops assume 4 dimensions, and changing |
Beta Was this translation helpful? Give feedback.
-
@randxie what are the operations you need to perform on a 5d tensor? Maybe they could be factored into up to 4d operations on slices of a 5d tensor? |
Beta Was this translation helpful? Give feedback.
I don't think there are any specific plans to add support for more dimensions. Most operations only work with one to three dimensions, and the rest is treated as a batch, so you should be able to get the same results if you merge the last two dimensions into one.