| 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 | |
| 434 | core::TensorValue build_mask_output( |
| 435 | core::ModuleBuildContext & ctx, |
no outgoing calls
no test coverage detected