| 1359 | */ |
| 1360 | template <typename... Ts> |
| 1361 | StackLayer(SubStream &&sub_stream1, SubStream &&sub_stream2, Ts &&...rest_sub_streams) : _sub_streams(), _axis(0) |
| 1362 | { |
| 1363 | _sub_streams.push_back(std::make_unique<SubStream>(std::move(sub_stream1))); |
| 1364 | _sub_streams.push_back(std::make_unique<SubStream>(std::move(sub_stream2))); |
| 1365 | |
| 1366 | utility::for_each([&](SubStream &&sub_stream) |
| 1367 | { _sub_streams.push_back(std::make_unique<SubStream>(std::move(sub_stream))); }, |
| 1368 | std::move(rest_sub_streams)...); |
| 1369 | } |
| 1370 | /** Construct a concatenation layer |
| 1371 | * |
| 1372 | * @param[in] axis Stack layer axis along which to stack the inputs |