Combine two ggml_tensor like torch.cat #1987
Answered
by
ggerganov
sankalpdayal
asked this question in
Q&A
-
I want to combine two embedding tensors where one of the embedding tensor is pre-stored which I plan to read from file. Is there a function
|
Beta Was this translation helpful? Give feedback.
Answered by
ggerganov
Jun 26, 2023
Replies: 1 comment
-
This is how you can implement |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sankalpdayal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is how you can implement
torch.cat
with existingggml
operators:https://github.com/ggerganov/ggml/blob/80f21b878163608209604a11083557a791342cf0/examples/sam/main.cpp#L1066-L1071