| 18 | using Clock = std::chrono::steady_clock; |
| 19 | |
| 20 | std::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 | |
| 27 | void validate_weight_storage(engine::assets::TensorStorageType storage_type, const char * option_name) { |
| 28 | if (storage_type == engine::assets::TensorStorageType::Native || |