| 60 | |
| 61 | std::shared_ptr<const engine::model_spec::ModelContract> require_contract( |
| 62 | std::shared_ptr<const engine::model_spec::ModelContract> contract) { |
| 63 | if (contract == nullptr) { |
| 64 | throw std::runtime_error("RoFormer session requires a model contract"); |
| 65 | } |
| 66 | return contract; |
| 67 | } |
nothing calls this directly
no test coverage detected