| 361 | } |
| 362 | |
| 363 | ~FlashSrGraph() { |
| 364 | core::release_backend_graph_resources(weights_.backend.get(), graph_); |
| 365 | if (plan_ != nullptr) { |
| 366 | auto * backend = weights_.backend.get(); |
| 367 | core::free_backend_graph_plan(backend, plan_); |
| 368 | } |
| 369 | if (gallocr_ != nullptr) { |
| 370 | ggml_gallocr_free(gallocr_); |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | bool matches(int64_t input_samples) const noexcept { |
| 375 | return input_samples_ == input_samples; |
nothing calls this directly
no test coverage detected