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

Function tensor_data

ds4.c:2326–2328  ·  view source on GitHub ↗

Return the in-place tensor payload inside the mapped GGUF. */

Source from the content-addressed store, hash-verified

2324 if (!kv) return false;
2325 ds4_cursor c = cursor_at(m, kv->value_pos);
2326 if (kv->type == GGUF_VALUE_UINT64) {
2327 return cursor_u64(&c, out);
2328 }
2329 if (kv->type == GGUF_VALUE_UINT32) {
2330 uint32_t v = 0;
2331 if (!cursor_u32(&c, &v)) return false;

Callers 15

embed_token_f16Function · 0.85
matvec_f16Function · 0.85
matvec_f16_serialFunction · 0.85
matvec_q8_0_grouped_rowsFunction · 0.85
matvec_f32Function · 0.85
tensor_1d_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected