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

Function require_assets

src/models/stable_audio/foundation/session.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21using Clock = std::chrono::steady_clock;
22
23std::shared_ptr<const StableAudioAssets> require_assets(std::shared_ptr<const StableAudioAssets> assets) {
24 if (assets == nullptr) {
25 throw std::runtime_error("Stable Audio Foundation session requires assets");
26 }
27 return assets;
28}
29
30void validate_weight_storage(engine::assets::TensorStorageType storage_type, const char * option_name) {
31 if (storage_type == engine::assets::TensorStorageType::Native ||

Callers 1

FoundationSessionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected