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

Function pad_context_values

src/models/ace_step/diffusion.cpp:655–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653 std::vector<float> out;
654 out.reserve(values.size() * static_cast<size_t>(batch_size));
655 for (int64_t batch = 0; batch < batch_size; ++batch) {
656 out.insert(out.end(), values.begin(), values.end());
657 }
658 return out;
659}
660
661std::vector<int32_t> pad_encoder_attention_mask(
662 const AceStepEncoderConditioning & conditioning,
663 int64_t padded_tokens) {

Callers 1

generate_latentsMethod · 0.85

Calls 1

pad_latent_valuesFunction · 0.85

Tested by

no test coverage detected