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

Function repeat_values

src/models/chatterbox/t3_component.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18std::vector<float> repeat_values(const std::vector<float> & values, int64_t batch) {
19 std::vector<float> repeated;
20 repeated.reserve(static_cast<size_t>(batch) * values.size());
21 for (int64_t batch_index = 0; batch_index < batch; ++batch_index) {
22 repeated.insert(repeated.end(), values.begin(), values.end());
23 }
24 return repeated;
25}
26
27std::vector<float> extract_step_embeddings(
28 const std::vector<float> & sequence_embeddings,

Callers 1

Calls 3

sizeMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected