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

Function validate_weight_storage

src/models/heartmula/session.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 throw std::runtime_error("HeartMuLa session requires assets");
24 }
25 return assets;
26}
27
28std::shared_ptr<const engine::model_spec::ModelContract> require_contract(
29 std::shared_ptr<const engine::model_spec::ModelContract> contract) {
30 if (contract == nullptr) {
31 throw std::runtime_error("HeartMuLa session requires a model contract");
32 }
33 return contract;
34}
35
36runtime::SessionOptions normalize_session_options(runtime::SessionOptions options) {
37 return runtime::apply_option_v1_compatibility(

Callers 1

validate_session_optionsFunction · 0.70

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected