Waits for all tasks in the stream to complete.
Note
If the auto_yield parameter was set to True when
initializing the Stream object via the constructor,
the IPU resources used by this stream will be
automatically released after this method completes.