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

Function checked_positive

src/models/omnivoice/audio_tokenizer.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50};
51
52int64_t checked_positive(int64_t value, const char * name) {
53 if (value <= 0) {
54 throw std::runtime_error(std::string("OmniVoice audio tokenizer expected positive ") + name);
55 }
56 return value;
57}
58
59void validate_weight_storage_type(assets_ns::TensorStorageType storage_type) {
60 switch (storage_type) {

Callers 3

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected