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

Method compute

src/framework/modules/ecapa_tdnn_runtime.cpp:566–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564 }
565
566 void compute() {
567 core::set_backend_threads(backend_, compute_threads_);
568 const auto compute_start = Clock::now();
569 const ggml_status status = core::compute_backend_graph(backend_, graph_, plan_);
570 ggml_backend_synchronize(backend_);
571 const auto compute_end = Clock::now();
572 if (status != GGML_STATUS_SUCCESS) {
573 throw std::runtime_error("ECAPA backend graph compute failed");
574 }
575 debug::timing_log_scalar("ecapa.graph.compute_ms", engine::debug::elapsed_ms(compute_start, compute_end));
576 }
577
578 std::shared_ptr<const EcapaWeights> weights_;
579 std::shared_ptr<const EcapaBackendWeights> backend_weights_;

Callers 2

waveform_from_postFunction · 0.45
compute_titanet_featuresFunction · 0.45

Calls 5

set_backend_threadsFunction · 0.85
compute_backend_graphFunction · 0.85
ggml_backend_synchronizeFunction · 0.85
timing_log_scalarFunction · 0.50
elapsed_msFunction · 0.50

Tested by

no test coverage detected