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

Function validate_weight_storage

src/models/stable_audio/session.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void validate_weight_storage(engine::assets::TensorStorageType storage_type, const char * option_name) {
28 if (storage_type == engine::assets::TensorStorageType::Native ||
29 storage_type == engine::assets::TensorStorageType::F32 ||
30 storage_type == engine::assets::TensorStorageType::F16 ||
31 storage_type == engine::assets::TensorStorageType::BF16 ||
32 storage_type == engine::assets::TensorStorageType::Q8_0) {
33 return;
34 }
35 throw std::runtime_error(std::string(option_name) + " supports only native, f32, f16, bf16, and q8_0");
36}
37
38bool all_durations_match(const std::vector<float> & durations) {
39 if (durations.empty()) {

Callers 1

StableAudioSessionMethod · 0.70

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected