MCPcopy Create free account
hub / github.com/antirez/ds4 / weights_model_map_spans

Function weights_model_map_spans

ds4.c:4325–4343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4323 want[i]);
4324 exit(1);
4325 }
4326}
4327
4328static bool tensor_type_is_glm_dense_quant(uint32_t type) {
4329 return type == DS4_TENSOR_Q8_0 ||
4330 type == DS4_TENSOR_Q4_K ||
4331 type == DS4_TENSOR_Q4_0;
4332}
4333
4334static bool tensor_type_is_dense_quant(uint32_t type) {
4335 return type == DS4_TENSOR_Q8_0 ||
4336 type == DS4_TENSOR_Q4_K ||
4337 type == DS4_TENSOR_Q4_0;
4338}
4339
4340static void tensor_expect_glm_dense_quant_layout(
4341 const ds4_tensor *t,
4342 uint32_t ndim,
4343 uint64_t d0,
4344 uint64_t d1,
4345 uint64_t d2) {
4346 if (!t) ds4_die("internal error: missing tensor while validating GLM dense layout");

Tested by

no test coverage detected