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

Function reflect_index

src/models/roformer/runtime.cpp:423–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421 next.reserve((outputs.size() + 1) / 2);
422 for (size_t i = 0; i < outputs.size(); i += 2) {
423 if (i + 1 < outputs.size()) {
424 next.push_back(modules::ConcatModule({2}).build(ctx, outputs[i], outputs[i + 1]));
425 } else {
426 next.push_back(outputs[i]);
427 }
428 }
429 outputs = std::move(next);
430 }
431 return outputs.front();
432}
433
434core::TensorValue build_mask_output(
435 core::ModuleBuildContext & ctx,

Callers 1

compute_roformer_stftFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected