ggml : relax asseerts for ggml_get_type_traits()

This commit is contained in:
Georgi Gerganov
2026-02-22 21:37:58 +02:00
parent 9c5d8dec37
commit a6d3e9a239

View File

@@ -899,8 +899,8 @@ static const struct ggml_type_traits type_traits[GGML_TYPE_COUNT] = {
};
const struct ggml_type_traits * ggml_get_type_traits(enum ggml_type type) {
GGML_ASSERT(type >= 0);
GGML_ASSERT(type < GGML_TYPE_COUNT);
assert(type >= 0);
assert(type < GGML_TYPE_COUNT);
return &type_traits[type];
}