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

Function backend_is_available

tests/unittests/test_encoder_modules.cpp:190–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190bool backend_is_available(engine::core::BackendType type) {
191 try {
192 ModuleRunner runner;
193 runner.backend_config.type = type;
194 if (runner.backend != nullptr) {
195 ggml_backend_free(runner.backend);
196 runner.backend = nullptr;
197 }
198 runner.backend = engine::core::init_backend(runner.backend_config);
199 return true;
200 } catch (...) {
201 return false;
202 }
203}
204
205engine::runtime::GraphOptimizationBackend graph_optimizer_backend_for_test(engine::core::BackendType type) {
206 switch (type) {

Calls 2

ggml_backend_freeFunction · 0.85
init_backendFunction · 0.85

Tested by

no test coverage detected