Stream
- class torch.xpu.Stream(device=None, priority=0, **kwargs)
Wrapper around a XPU stream.
A XPU stream is a linear sequence of execution that belongs to a specific device, independent from other streams. It supports with statement as a context manager to ensure the operators within the with block are running on the corresponding stream.
- Parameters