Revert "[Platform] Replace torch.cuda.Event with torch.Event (#47140)" (#47668)

Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Kunshang Ji
2026-07-06 14:18:33 +01:00
committed by GitHub
co-authored by Harry Mellor
parent 7a90eb98ab
commit 07f9baf756
31 changed files with 70 additions and 60 deletions
@@ -170,8 +170,8 @@ def benchmark_config(
graph.replay()
torch.accelerator.synchronize()
start = torch.Event(enable_timing=True)
end = torch.Event(enable_timing=True)
start = torch.cuda.Event(enable_timing=True)
end = torch.cuda.Event(enable_timing=True)
latencies: list[float] = []
for _ in range(num_iters):
start.record()