Event
- class torch.mps.event.Event(enable_timing=False)
Wrapper around an MPS event.
MPS events are synchronization markers that can be used to monitor the device’s progress, to accurately measure timing, and to synchronize MPS streams.
Wrapper around an MPS event.
MPS events are synchronization markers that can be used to monitor the device’s progress, to accurately measure timing, and to synchronize MPS streams.
FalseReturns the time elapsed in milliseconds after the event was recorded and before the end_event was recorded.
Returns True if all work currently captured by event has completed.
Records the event in the default stream.
Waits until the completion of all work currently captured in this event. This prevents the CPU thread from proceeding until the event completes.
Makes all future work submitted to the default stream wait for this event.