MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_graph_compute_helper

Function ggml_graph_compute_helper

external/ggml/examples/sam/sam.cpp:368–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368static void ggml_graph_compute_helper(std::vector<uint8_t> & buf, ggml_cgraph * graph, int n_threads) {
369 struct ggml_cplan plan = ggml_graph_plan(graph, n_threads, nullptr);
370
371 if (plan.work_size > 0) {
372 buf.resize(plan.work_size);
373 plan.work_data = buf.data();
374 }
375
376 ggml_graph_compute(graph, &plan);
377}
378
379static void ggml_sam_sin(struct ggml_tensor * dst , const struct ggml_tensor * src, int ith, int nth, void * userdata) {
380 GGML_ASSERT(userdata == NULL);

Callers 1

mainFunction · 0.85

Calls 4

ggml_graph_planFunction · 0.85
ggml_graph_computeFunction · 0.85
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected