|
From: | Sumit Agrawal (P19EE207) |
Subject: | how to make stream demux block in python |
Date: | Sun, 11 Dec 2022 12:02:40 +0530 |
Demuxes a stream producing N outputs streams that contain n_0 items in the first stream, n_1 items in the second, etc., and repeats. Tags are propagated. The number of items in each output stream is specified using the lengths parameter like so [n_0, n_1, ..., n_N-1].
Example:
lengths = [2,3,4,5]
input stream = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...]
output_stream_0 = [0, 1, 14, 15, ...]
output_stream_1 = [2, 3, 4, 16, ...]
output_stream_2 = [5, 6, 7, 8, ...]
[Prev in Thread] | Current Thread | [Next in Thread] |