| 36 | } |
| 37 | |
| 38 | std::shared_ptr<const engine::model_spec::ModelContract> require_contract( |
| 39 | std::shared_ptr<const engine::model_spec::ModelContract> contract) { |
| 40 | if (contract == nullptr) { |
| 41 | throw std::runtime_error("Sortformer diar session requires a model contract"); |
| 42 | } |
| 43 | return contract; |
| 44 | } |
| 45 | |
| 46 | runtime::GraphCapacityMode default_graph_capacity_mode(const core::ExecutionContext & execution_context) { |
| 47 | return execution_context.uses_host_graph_plan() |
| 48 | ? runtime::GraphCapacityMode::Tiered |
| 49 | : runtime::GraphCapacityMode::Fixed; |
| 50 | } |
no test coverage detected