| 16 | } |
| 17 | |
| 18 | std::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 | |
| 27 | std::vector<float> extract_step_embeddings( |
| 28 | const std::vector<float> & sequence_embeddings, |
no test coverage detected