| 148 | }; |
| 149 | |
| 150 | SileroRuntime::SileroRuntime( |
| 151 | std::shared_ptr<const SileroWeights> weights, |
| 152 | core::ExecutionContext & execution_context, |
| 153 | assets::TensorStorageType weight_storage_type) |
| 154 | : execution_context_(&execution_context), |
| 155 | weights_(require_weights(std::move(weights))), |
| 156 | backend_weights_(load_backend_weights(*weights_, execution_context.backend(), execution_context.backend_type(), weight_storage_type)) { |
| 157 | reset(1); |
| 158 | } |
| 159 | |
| 160 | SileroRuntime::~SileroRuntime() = default; |
| 161 |
nothing calls this directly
no test coverage detected