- 
                Notifications
    
You must be signed in to change notification settings  - Fork 13.5k
 
llava: n_patches for clip_image_u8 #12944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 
          
            
          
           | 
    @@ -58,9 +58,10 @@ CLIP_API const char * clip_patch_merge_type(const struct clip_ctx * ctx); | |||||||||
| CLIP_API const int32_t * clip_image_grid(const struct clip_ctx * ctx); | ||||||||||
| CLIP_API size_t get_clip_image_grid_size(const struct clip_ctx * ctx); | ||||||||||
| 
     | 
||||||||||
| CLIP_API int clip_n_patches (const struct clip_ctx * ctx); | ||||||||||
| CLIP_API int clip_n_patches_by_img (const struct clip_ctx * ctx, struct clip_image_f32 * img); | ||||||||||
| CLIP_API int clip_n_mmproj_embd (const struct clip_ctx * ctx); | ||||||||||
| CLIP_API int clip_n_patches (const struct clip_ctx * ctx); | ||||||||||
| CLIP_API int clip_n_patches_by_img (const struct clip_ctx * ctx, struct clip_image_f32 * img); | ||||||||||
| CLIP_API int clip_n_patches_by_img_u8 (const struct clip_ctx * ctx, struct clip_image_u8 * img); | ||||||||||
                
       | 
||||||||||
| CLIP_API int clip_n_patches_by_img (const struct clip_ctx * ctx, struct clip_image_f32 * img); | |
| CLIP_API int clip_n_patches_by_img_u8 (const struct clip_ctx * ctx, struct clip_image_u8 * img); | |
| CLIP_API int clip_img_f32_get_n_output_tokens(const struct clip_ctx * ctx, struct clip_image_f32 * img); | |
| CLIP_API int clip_img_u8_get_n_output_tokens (const struct clip_ctx * ctx, struct clip_image_u8 * img); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old clip_n_patches_by_img can be marked as deprecated (we can add a simple comment for now and will add proper __attribute__ in the future)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mm, okay - I just deleted because it seemed like lots of breaking changes were already occurring amongst the refactor. But I can certainly re-add and mark deprecated if you'd prefer.
Uh oh!
There was an error while loading. Please reload this page.