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

Function weights_model_map_decode_static_spans

ds4.c:4355–4368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4353 exit(1);
4354 }
4355 tensor_expect_layout(t, t->type, ndim, d0, d1, d2);
4356}
4357
4358static void tensor_expect_dense_quant_layout(
4359 const ds4_tensor *t,
4360 uint32_t ndim,
4361 uint64_t d0,
4362 uint64_t d1,
4363 uint64_t d2) {
4364 if (!t) ds4_die("internal error: missing tensor while validating dense quant layout");
4365 if (!tensor_type_is_dense_quant(t->type)) {
4366 fprintf(stderr,
4367 "ds4: tensor %.*s has type %s, expected q8_0, q4_K, or q4_0\n",
4368 (int)t->name.len,
4369 t->name.ptr,
4370 tensor_type_name(t->type));
4371 exit(1);

Tested by

no test coverage detected