Skip to content

Commit 8f20c14

Browse files
committed
Fix cuda
1 parent 8f6bce9 commit 8f20c14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/mtmd/clip.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,6 +1622,7 @@ struct clip_graph {
16221622
pos_embd = ggml_interpolate(ctx0, pos_embd, width, height, n_embd, 1, 1); // -> (width, height, n_embd)
16231623
pos_embd = ggml_reshape_2d(ctx0, pos_embd, height * width, n_embd); // -> (height * width, n_embd)
16241624
pos_embd = ggml_transpose(ctx0, pos_embd); // -> (n_embd, height * width)
1625+
pos_embd = ggml_cont(ctx0, pos_embd);
16251626

16261627
return pos_embd;
16271628
}

0 commit comments

Comments
 (0)