-
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: 3 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.
-
Dear Development Team, We are in need of an extension to support 5D and 6D tensors for 3D applications, particularly for operations such as nn.Conv3d and nn.BatchNorm3d within PyTorch. The current support for 3D and 4D tensors is insufficient for advanced use cases. We kindly request that you consider implementing this feature to enhance the capabilities of our applications. Thank you for your attention to this matter. Best regards, |
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.