| 574 | } |
| 575 | |
| 576 | ~F0Runner() { |
| 577 | if (weights_ != nullptr && graph_ != nullptr) { |
| 578 | engine::core::release_backend_graph_resources(weights_->execution_context->backend(), graph_); |
| 579 | } |
| 580 | if (gallocr_ != nullptr) { |
| 581 | ggml_gallocr_free(gallocr_); |
| 582 | } |
| 583 | if (ctx_ != nullptr) { |
| 584 | ggml_free(ctx_); |
| 585 | } |
| 586 | } |
| 587 | |
| 588 | bool supports(const HiftVocoderWeights & weights, int64_t frames) const { |
| 589 | return weights_ == &weights && capacity_frames_ == frames; |
nothing calls this directly
no test coverage detected