MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ~DecodeGraph

Method ~DecodeGraph

src/models/ace_step/planner.cpp:1973–1978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1971 .build(ctx, x, {weights.lm_head, std::nullopt});
1972 logits_ = logits.tensor;
1973 ggml_set_output(logits_);
1974 ggml_build_forward_expand(graph_, logits_);
1975 buffer_ = ggml_backend_alloc_ctx_tensors(ctx_.get(), runtime_->backend());
1976 if (buffer_ == nullptr) {
1977 throw std::runtime_error("failed to allocate ACE-Step planner decode graph");
1978 }
1979 attention_mask_values_.assign(
1980 static_cast<size_t>(cache_steps_ + 1),
1981 ggml_fp32_to_fp16(-std::numeric_limits<float>::infinity()));

Callers

nothing calls this directly

Calls 3

ggml_backend_buffer_freeFunction · 0.85
backendMethod · 0.45

Tested by

no test coverage detected