vpi.Stream
- class vpi.Stream
Create a stream (queue) to run algorithms on.
All algorithms require a stream where it will be placed for execution. There are three ways of defining the stream:
Define it as an argument to the algorithm call;
Define it via a with statement, where the stream is defined for all algorithms called within that with statement;
None of the above, the default stream is used.
Hint
All algorithms in a stream execute asynchronously. To force them to execute call
sync
.Static methods
The stream that is currently in use for processing.
The stream that is used when no other stream is specified.
Methods
sync
(self)Synchronize the stream.