mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 20:04:35 +00:00
server : coding-style normalization
This commit is contained in:
parent
ab2fc00224
commit
e44ed60187
@ -608,8 +608,8 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
|
|||||||
int idx_mean = get_key_idx(ctx, KEY_IMAGE_MEAN);
|
int idx_mean = get_key_idx(ctx, KEY_IMAGE_MEAN);
|
||||||
int idx_std = get_key_idx(ctx, KEY_IMAGE_STD);
|
int idx_std = get_key_idx(ctx, KEY_IMAGE_STD);
|
||||||
for (int i = 0; i < 3; ++i) {
|
for (int i = 0; i < 3; ++i) {
|
||||||
new_clip->image_mean[i] = *((float *)gguf_get_arr_data(ctx, idx_mean));
|
new_clip->image_mean[i] = *((const float *)gguf_get_arr_data(ctx, idx_mean));
|
||||||
new_clip->image_std[i] = *((float *)gguf_get_arr_data(ctx, idx_std));
|
new_clip->image_std[i] = *((const float *)gguf_get_arr_data(ctx, idx_std));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verbosity >= 2) {
|
if (verbosity >= 2) {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user