This commit is contained in:
Eddie-Wang 2024-06-10 02:50:14 +00:00
parent 65ac3a3627
commit abd798d70f
2 changed files with 57 additions and 7 deletions

1
ggml.c
View file

@ -3104,7 +3104,6 @@ GGML_CALL size_t ggml_type_size(enum ggml_type type) {
GGML_CALL size_t ggml_row_size(enum ggml_type type, int64_t ne) {
assert(ne % ggml_blck_size(type) == 0);
if (type == GGML_TYPE_I2_S) ne /= 4;
return ggml_type_size(type)*ne/ggml_blck_size(type);
}