| 50 | }; |
| 51 | |
| 52 | int64_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 | |
| 59 | void validate_weight_storage_type(assets_ns::TensorStorageType storage_type) { |
| 60 | switch (storage_type) { |
no test coverage detected