Skip to content

Commit 8d0195f

Browse files
USE MAX_IMAGE_FEATURE_LAYERS const in layer calc
Signed-off-by: Alex-Brooks <[email protected]>
1 parent e1d2d8f commit 8d0195f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/llava/clip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3001,7 +3001,7 @@ int get_deepest_feature_layer(const struct clip_ctx * ctx) {
30013001
}
30023002

30033003
// If we set explicit vision feature layers, only go up to the deepest one
3004-
for (int i = 0; i < 4; i++) {
3004+
for (int i = 0; i < MAX_IMAGE_FEATURE_LAYERS; i++) {
30053005
if (ctx->vision_model.hparams.vision_feature_layer[i] > deepest_feature_layer) {
30063006
deepest_feature_layer = ctx->vision_model.hparams.vision_feature_layer[i];
30073007
}

0 commit comments

Comments
 (0)