From 5ccd9eb963ba649aacb6c73bdd5d0ef0f52cd1c3 Mon Sep 17 00:00:00 2001 From: Jihun Kim Date: Tue, 18 Nov 2025 14:52:58 +0900 Subject: [PATCH] Fix elapsed time computation from issue #3649 --- intermediate_source/torch_compile_tutorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intermediate_source/torch_compile_tutorial.py b/intermediate_source/torch_compile_tutorial.py index b600d242e5..343ad3b21b 100644 --- a/intermediate_source/torch_compile_tutorial.py +++ b/intermediate_source/torch_compile_tutorial.py @@ -163,7 +163,7 @@ def timed(fn): result = fn() end.record() torch.cuda.synchronize() - return result, start.elapsed_time(end) / 1024 + return result, start.elapsed_time(end) / 1000 inp = torch.randn(4096, 4096).cuda()