summaryrefslogtreecommitdiff
path: root/examples/llava/clip.cpp
diff options
context:
space:
mode:
authorslaren <slarengh@gmail.com>2024-02-19 14:02:36 +0100
committerGeorgi Gerganov <ggerganov@gmail.com>2024-02-19 15:09:43 +0200
commit6fd413791a754598a54a366145960f2e27eec015 (patch)
tree57b34137a7a8136373b14511738a378944d21482 /examples/llava/clip.cpp
parent337c9cbd52918ae5fb9a9d9e25d7fae4e238c9f1 (diff)
llava : replace ggml_cpy with ggml_cont
Diffstat (limited to 'examples/llava/clip.cpp')
-rw-r--r--examples/llava/clip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp
index 98d512f6..1a02fde3 100644
--- a/examples/llava/clip.cpp
+++ b/examples/llava/clip.cpp
@@ -618,7 +618,7 @@ static ggml_cgraph * clip_image_build_graph(clip_ctx * ctx, const clip_image_f32
KQV = ggml_reshape_4d(ctx0, KQV, d_head, num_positions, n_head, batch_size);
KQV = ggml_cont(ctx0, ggml_permute(ctx0, KQV, 0, 2, 1, 3));
- cur = ggml_cpy(ctx0, KQV, ggml_new_tensor_3d(ctx0, GGML_TYPE_F32, hidden_size, num_positions, batch_size));
+ cur = ggml_cont_3d(ctx0, KQV, hidden_size, num_positions, batch_size);
}
// attention output