MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / write_tensor_pattern

Function write_tensor_pattern

server/tests/test_deepseek4_unit.cpp:530–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528 ggml_tensor * out_t = ggml_swiglu_ds4_split(ctx, gate_t, up_t, clamp);
529 ggml_set_output(out_t);
530
531 ggml_cgraph * gf = ggml_new_graph_custom(ctx, 16, false);
532 ggml_build_forward_expand(gf, out_t);
533 ggml_gallocr_t alloc = ggml_gallocr_new(ggml_backend_cpu_buffer_type());
534 TEST_ASSERT(ggml_gallocr_alloc_graph(alloc, gf));
535 ggml_backend_tensor_set(gate_t, gate.data(), 0, gate.size() * sizeof(float));
536 ggml_backend_tensor_set(up_t, up.data(), 0, up.size() * sizeof(float));

Callers 1

Calls 3

make_tensor_patternFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected