torch.mps.profiler.profile
- torch.mps.profiler.profile(mode='interval', wait_until_completed=False)
Context Manager to enabling generating OS Signpost tracing from MPS backend.
Context Manager to enabling generating OS Signpost tracing from MPS backend.
wait_until_completed (bool) – Waits until the MPS Stream complete executing each encoded GPU operation. This helps generating single dispatches on the trace’s timeline. Note that enabling this option would affect the performance negatively.
Iterator[None]