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

Method SileroRuntime

src/models/silero_vad/runtime.cpp:150–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148};
149
150SileroRuntime::SileroRuntime(
151 std::shared_ptr<const SileroWeights> weights,
152 core::ExecutionContext & execution_context,
153 assets::TensorStorageType weight_storage_type)
154 : execution_context_(&execution_context),
155 weights_(require_weights(std::move(weights))),
156 backend_weights_(load_backend_weights(*weights_, execution_context.backend(), execution_context.backend_type(), weight_storage_type)) {
157 reset(1);
158}
159
160SileroRuntime::~SileroRuntime() = default;
161

Callers

nothing calls this directly

Calls 4

require_weightsFunction · 0.70
load_backend_weightsFunction · 0.70
backendMethod · 0.45
backend_typeMethod · 0.45

Tested by

no test coverage detected