Skip to content
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

clip: don't throw exceptions from llava functions compiled as extern "C" #8210

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hackingthekernel
Copy link

Addressing #7073

@mofosyne mofosyne added the Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix label Jun 30, 2024
Comment on lines +2084 to +2085
LOG_TEE("%s: don't support projector with: %s currently\n", __func__, proj_type.c_str());
return 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should never happen since the projector type is already checked when loading the model, right? If that's the case, it would be better to use an assert here, since returning zero would allow applications to continue without catching the error, and this should never happen unless there is a bug somewhere else anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants