ggml-org/llama.cpp

Llava functions compiled as extern "C" throw exceptions

已關閉

#7,073 建立於 2024年5月4日

 (1 則留言) (0 個反應) (0 位負責人)C++ (21,786 個分叉)batch import
buggood first issue

倉庫指標

星標
 (124,222 顆星)
PR 合併指標
 (平均合併 6天 8小時) (30 天內合併 389 個 PR)

描述

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.

貢獻者指南