ggml-org/llama.cpp

Llava functions compiled as extern "C" throw exceptions

Geschlossen

#7.073 geöffnet am 04.05.2024

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C++ (21.825 Forks)batch import
buggood first issue

Repository-Metriken

Stars
 (124.401 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 8h) (389 gemergte PRs in 30 T)

Beschreibung

Basically this: llama.cpp\examples\llava\clip.cpp(1277,13): warning : 'clip_model_load' has a non-throwing exception specification but can still throw [-Wexceptions] llama.cpp\examples\llava\clip.cpp(2075,5): warning : 'clip_n_mmproj_embd' has a non-throwing exception specification but can still throw [-Wexceptions]

As these are library exported functions and wrapped in extern "C", they should not allow exceptions to cross the boundary. C language has no idea what to do with them.

Compiled with clang-cl in windows.

Contributor Guide