server : coding-style normalization

This commit is contained in:
Georgi Gerganov 2023-10-19 13:37:39 +03:00
parent ab2fc00224
commit e44ed60187
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735
2 changed files with 360 additions and 236 deletions

View File

@ -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_std = get_key_idx(ctx, KEY_IMAGE_STD);
for (int i = 0; i < 3; ++i) {
new_clip->image_mean[i] = *((float *)gguf_get_arr_data(ctx, idx_mean));
new_clip->image_std[i] = *((float *)gguf_get_arr_data(ctx, idx_std));
new_clip->image_mean[i] = *((const float *)gguf_get_arr_data(ctx, idx_mean));
new_clip->image_std[i] = *((const float *)gguf_get_arr_data(ctx, idx_std));
}
if (verbosity >= 2) {

File diff suppressed because it is too large Load Diff