Can we prepend some header(example: memref) on Tensor data which custom hardware can use to execute Tensor Data #1090
Replies: 4 comments 3 replies
-
You can override the |
Beta Was this translation helpful? Give feedback.
-
Thanks, |
Beta Was this translation helpful? Give feedback.
-
I Think u are missing my point, I have created custom
only issue i found that i need to comment below code for ggml_backend_tensor_set & ggml_backend_tensor_get which is not correct i cant commit/push below code at GGML Repo what is solution for below code. Just look at ggml_backend_tensor_set & ggml_backend_tensor_get and le me know what need to done so that we can avoid below GGML_ASSERT(once again everything else perfectly fine, i have defined all backend API to implement my custom Hardware and all functionality is working fine with me) |
Beta Was this translation helpful? Give feedback.
-
Please ignore my previous message, I am able to solve with Backend implementation of tensor_set/tensor_get/alloc_func here we are moving the customer header. We can close this discussion. My issue is resolved. Thanks for all help! |
Beta Was this translation helpful? Give feedback.
-
Hi,
My Question at following simple example:
A = B+C where , A, B & C are one dimensional vector, example of size 32 elements with type GGML_TYPE_F32.
hence i created one dimension Tensor for both leaf
I have setup backend buffer,
each leaf & node Tensor will have size = 432 bytes
but i want to prepend header of 64 bytes
Hence each tensor has size = 64 + 432
I can encode stuff on 64bytes which my custom hardware can understand during compute function.
Is this possible, please let me know.
Thanks,
Anoop
Beta Was this translation helpful? Give feedback.
All reactions