ggml : fix uninitialized is_on_grid in quantize_row_iq3_xxs_impl (#15928)
* fix uninitialized is_on_grid in quantize_row_iq3_xxs_impl * change initialization to true
This commit is contained in:
parent
264f1b5187
commit
f6b4af3d04
|
|
@ -3721,6 +3721,7 @@ static void quantize_row_iq3_xxs_impl(int grid_size, const float * GGML_RESTRICT
|
||||||
}
|
}
|
||||||
float best = 0;
|
float best = 0;
|
||||||
float scale = max/(2*kMaxQ-1);
|
float scale = max/(2*kMaxQ-1);
|
||||||
|
for (int k = 0; k < 8; ++k) is_on_grid[k] = true;
|
||||||
for (int is = -15; is <= 15; ++is) {
|
for (int is = -15; is <= 15; ++is) {
|
||||||
float id = (2*kMaxQ-1+is*0.2f)/max;
|
float id = (2*kMaxQ-1+is*0.2f)/max;
|
||||||
float this_scale = 1/id;
|
float this_scale = 1/id;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue