Stream
- class torch.mtia.Stream(device, *, priority)
An in-order queue of executing the respective tasks asynchronously in first in first out (FIFO) order. It can control or synchronize the execution of other Stream or block the current host thread to ensure the correct task sequencing. It supports with statement as a context manager to ensure the operators within the with block are running on the corresponding stream.
See in-depth description of the CUDA behavior at CUDA semantics for details on the exact semantic that applies to all devices.
- Parameters