Update examples/llava/clip.cpp

This commit is contained in:
Georgi Gerganov 2024-04-25 22:38:14 +03:00 committed by GitHub
parent d1d176e7bf
commit 3d771207b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1173,7 +1173,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
try {
vision_model.class_embedding = get_tensor(new_clip->ctx_data, TN_CLASS_EMBD);
new_clip->has_class_embedding = true;
} catch(const std::exception& e) {
} catch (const std::exception& e) {
new_clip->has_class_embedding = false;
}