sync
Module.sync()
Waits for the completion of all preceding tasks in the stream that is related to the module.
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.