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

Method HeartCodecWeightsRuntime

src/models/heartmula/codec.cpp:1295–1325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1293 conditioning_graph_.reset();
1294 flow_estimator_graph_.reset();
1295 weights_.reset();
1296}
1297
1298const HeartMuLaAssets & HeartCodecWeightsRuntime::assets() const noexcept {
1299 return *assets_;
1300}
1301
1302const HeartCodecWeights & HeartCodecWeightsRuntime::weights() const noexcept {
1303 return *weights_;
1304}
1305
1306ggml_backend_t HeartCodecWeightsRuntime::backend() const noexcept {
1307 return execution_context_->backend();
1308}
1309
1310core::BackendType HeartCodecWeightsRuntime::backend_type() const noexcept {
1311 return execution_context_->backend_type();
1312}
1313
1314int HeartCodecWeightsRuntime::device() const noexcept {
1315 return execution_context_->config().device;
1316}
1317
1318int HeartCodecWeightsRuntime::threads() const noexcept {
1319 return std::max(1, execution_context_->config().threads);
1320}
1321
1322size_t HeartCodecWeightsRuntime::flow_estimator_graph_arena_bytes() const noexcept {
1323 return flow_estimator_graph_arena_bytes_;
1324}
1325
1326size_t HeartCodecWeightsRuntime::conditioning_graph_arena_bytes() const noexcept {
1327 return conditioning_graph_arena_bytes_;
1328}

Callers

nothing calls this directly

Calls 4

load_heartcodec_weightsFunction · 0.85
backendMethod · 0.45
backend_typeMethod · 0.45
release_storageMethod · 0.45

Tested by

no test coverage detected