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

Function backend_is_available

tests/unittests/test_conv_transpose_fast_path.cpp:110–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 const ggml_status status = ggml_backend_graph_compute(backend, graph);
109 const auto end = std::chrono::steady_clock::now();
110 if (status != GGML_STATUS_SUCCESS) {
111 std::ostringstream oss;
112 oss << "backend graph compute failed with status " << static_cast<int>(status);
113 throw std::runtime_error(oss.str());
114 }
115 RunResult result{output.shape, {}};
116 result.compute_ms = std::chrono::duration<double, std::milli>(end - start).count();
117 engine::core::read_tensor_f32_into(output.tensor, result.values);
118 return result;
119 }
120};

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected