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

Function weights_model_map_decode_static_slice_spans

ds4.c:4370–4389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4368 (int)t->name.len,
4369 t->name.ptr,
4370 tensor_type_name(t->type));
4371 exit(1);
4372 }
4373 tensor_expect_layout(t, t->type, ndim, d0, d1, d2);
4374}
4375
4376static void tensor_expect_optional(
4377 const ds4_tensor *t,
4378 uint32_t type,
4379 uint32_t ndim,
4380 uint64_t d0,
4381 uint64_t d1,
4382 uint64_t d2) {
4383 if (t) tensor_expect_layout(t, type, ndim, d0, d1, d2);
4384}
4385
4386static void tensor_expect_plain_layout(
4387 const ds4_tensor *t,
4388 uint32_t ndim,
4389 uint64_t d0,
4390 uint64_t d1,
4391 uint64_t d2) {
4392 if (!t) ds4_die("internal error: missing tensor while validating layout");

Callers 1

ds4_engine_openFunction · 0.85

Tested by

no test coverage detected