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

Function validate_weight_storage

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

Source from the content-addressed store, hash-verified

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

Callers 1

FoundationSessionMethod · 0.70

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected