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

Function metal_graph_alloc_kv_cache_tensor

ds4.c:10807–10809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10805 for (int i = 0; i < n_expert; i++) {
10806 uint64_t in_dim, out_dim;
10807 ctx.base[i] = tensor_expert_bytes(m, w, (uint32_t)selected[i],
10808 &in_dim, &out_dim, &ctx.row_bytes[i]);
10809 if (i == 0) {
10810 in_dim0 = in_dim;
10811 out_dim0 = out_dim;
10812 } else if (in_dim != in_dim0 || out_dim != out_dim0) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected