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

Function require_assets

src/models/stable_audio/session.cpp:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

StableAudioSessionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected