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

Function compute_backend_graph

src/framework/core/backend.cpp:377–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377ggml_status compute_backend_graph(
378 ggml_backend_t backend,
379 ggml_cgraph * graph,
380 ggml_backend_graph_plan_t plan,
381 const char * label) {
382 if (backend == nullptr || graph == nullptr) {
383 return GGML_STATUS_FAILED;
384 }
385#ifndef NDEBUG
386 if (plan == nullptr && backend_graph_validation_enabled()) {
387 validate_backend_graph_supported(backend, graph, label);
388 } else {
389 (void)label;
390 }
391#else
392 (void)label;
393#endif
394 return plan != nullptr
395 ? ggml_backend_graph_plan_compute(backend, plan)
396 : ggml_backend_graph_compute(backend, graph);
397}
398
399void prepare_host_graph_plan(const ExecutionContext & execution_context, ggml_cgraph * graph, HostGraphPlan & plan) {
400 plan.reset();

Callers 15

runMethod · 0.85
encode_layersMethod · 0.85
encodeMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
computeMethod · 0.85
compute_graphFunction · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85

Tested by

no test coverage detected