Skip to content

Commit e4b123b

Browse files
izaitsevfbpytorchmergebot
authored andcommitted
Revert direct updates (#159654)
reverts: ``` commit 5711a8f (tag: trunk/5711a8f06948eeee56ed5f53f171fa519f78491c, origin/main, main) Author: Jovian Anthony Jaison <38627145+jovianjaison@users.noreply.github.com> Date: Fri Aug 1 09:32:52 2025 -0700 Update test_utils.py commit b4b71d0 (tag: trunk/b4b71d011ed07a41c2086ff0dec2988a63662877) Author: Jovian Anthony Jaison <38627145+jovianjaison@users.noreply.github.com> Date: Fri Aug 1 09:27:54 2025 -0700 Update utils.py commit 52376b9 (tag: trunk/52376b9b6fbf9fe24f5d82038dc520f0c64b6f8d) Author: Jovian Anthony Jaison <38627145+jovianjaison@users.noreply.github.com> Date: Fri Aug 1 09:26:05 2025 -0700 ``` (commits pushed directly to main by mistake) Pull Request resolved: #159654 Approved by: https://github.com/atalman
1 parent 5711a8f commit e4b123b

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

test/dynamo/test_utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ def test_dynamo_timed(self, mock_time, mock_time_ns):
350350
e.cuda_version = None
351351
e.triton_version = None
352352
e.python_version = None
353-
e.stack_trace = None
354353

355354
# First event is for the forward. Formatting makes reading diffs
356355
# much easier.
@@ -434,7 +433,6 @@ def test_dynamo_timed(self, mock_time, mock_time_ns):
434433
'runtime_triton_autotune_time_us': None,
435434
'shape_env_guard_count': 0,
436435
'specialize_float': False,
437-
'stack_trace': None,
438436
'start_time': 0.0001,
439437
'start_time_us': 100,
440438
'structured_logging_overhead_s': 0.0,
@@ -527,7 +525,6 @@ def test_dynamo_timed(self, mock_time, mock_time_ns):
527525
'runtime_triton_autotune_time_us': None,
528526
'shape_env_guard_count': None,
529527
'specialize_float': None,
530-
'stack_trace': None,
531528
'start_time': 0.0001,
532529
'start_time_us': 100,
533530
'structured_logging_overhead_s': 0.0,

torch/_dynamo/convert_frame.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,6 @@ def format_func_info(code: CodeType) -> str:
13001300
"dynamo_compile_time_before_restart_us": to_int_us(
13011301
dynamo_time_before_restart
13021302
),
1303-
"stack_trace": traceback.format_stack(),
13041303
}
13051304
# TODO: replace with CompileEventLogger.compilation_metrics
13061305
# There are some columns here not in PT2 Compile Events

torch/_dynamo/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,6 @@ class CompilationMetrics:
12791279
compliant_custom_ops: Optional[set[str]] = None
12801280
restart_reasons: Optional[set[str]] = None
12811281
dynamo_time_before_restart_s: Optional[float] = None
1282-
stack_trace: Optional[list[str]] = None
12831282
# Sometimes, we will finish analyzing a frame but conclude we don't want
12841283
# to install any guarded code. True means we actually decided to install
12851284
# a compiled frame
@@ -1475,7 +1474,6 @@ def add_compilation_metrics_to_chromium(c: CompilationMetrics) -> None:
14751474
fail_reason=c.fail_reason,
14761475
fail_user_frame_filename=c.fail_user_frame_filename,
14771476
fail_user_frame_lineno=c.fail_user_frame_lineno,
1478-
stack_trace=c.stack_trace,
14791477
# Sets aren't JSON serializable
14801478
non_compliant_ops=list(c.non_compliant_ops)
14811479
if c.non_compliant_ops is not None

0 commit comments

Comments
 (0)