Event
- class torch.xpu.streams.Event(enable_timing=False)
Wrapper around a XPU event.
XPU events are synchronization markers that can be used to monitor the device’s progress, and to synchronize XPU streams.
The underlying XPU events are lazily initialized when the event is first recorded. After creation, only streams on the same device may record the event. However, streams on any device can wait on the event.
- Parameters:
() – indicates if the event should measure time (default: )