Skip to content

Commit 390ea60

Browse files
[cherry-pick] temporarily disabling generation of weblinks for torch v2.8 & removing string literals for weblink generation (pytorch#157951)
* [dynamo] temporarily disabling generation of weblinks for torch v2.8 release (pytorch#157299) Pull Request resolved: pytorch#157299 Approved by: https://github.com/williamwen42 (cherry picked from commit 3ed4384) * [dynamo] removing string literals for weblink generation (pytorch#157820) Pull Request resolved: pytorch#157820 Approved by: https://github.com/williamwen42 (cherry picked from commit 9f18482)
1 parent 9bd202e commit 390ea60

File tree

6 files changed

+11
-95
lines changed

6 files changed

+11
-95
lines changed

test/distributed/_composable/fsdp/test_fully_shard_compile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,7 @@ def test_compiled():
548548
Hint: This graph break is fundamental - it is unlikely that Dynamo will ever be able to trace through your code. Consider finding a workaround.
549549
550550
Developer debug context: call_method TensorVariable() backward () {}
551-
552-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0123""", # noqa: B950
551+
""", # noqa: B950
553552
)
554553
else:
555554
self.assertGreater(len(counters["graph_break"]), 1)

test/dynamo/test_error_messages.py

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def fn():
6161
6262
Developer debug context: aten.nonzero.default
6363
64-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0036
6564
6665
from user code:
6766
File "test_error_messages.py", line N, in fn
@@ -83,7 +82,6 @@ def fn():
8382
8483
Developer debug context: aten.linalg_lstsq.default
8584
86-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0037
8785
8886
from user code:
8987
File "test_error_messages.py", line N, in fn
@@ -106,7 +104,6 @@ def fn(x):
106104
107105
Developer debug context: call_method TensorVariable() item () {}
108106
109-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0124
110107
111108
from user code:
112109
File "test_error_messages.py", line N, in fn
@@ -130,7 +127,6 @@ def fn(x):
130127
131128
Developer debug context: aten.equal.default
132129
133-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0033
134130
135131
from user code:
136132
File "test_error_messages.py", line N, in fn
@@ -158,7 +154,6 @@ def fn(lst):
158154
159155
Developer debug context: TensorVariable()
160156
161-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0207
162157
163158
from user code:
164159
File "test_error_messages.py", line N, in fn
@@ -183,7 +178,6 @@ def fn(it):
183178
184179
Developer debug context: call_method UserDefinedObjectVariable(zip) __iter__ () {}
185180
186-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0156
187181
188182
from user code:
189183
File "test_error_messages.py", line N, in fn
@@ -211,7 +205,6 @@ def fn(x, items):
211205
212206
Developer debug context: call_method UserDefinedObjectVariable(dict_items) __iter__ () {}
213207
214-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0156
215208
216209
from user code:
217210
File "test_error_messages.py", line N, in fn
@@ -235,7 +228,6 @@ def fn(it):
235228
236229
Developer debug context: call_function UserDefinedObjectVariable(zip) [] {}
237230
238-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0147
239231
240232
from user code:
241233
File "test_error_messages.py", line N, in fn
@@ -259,7 +251,6 @@ def fn(obj):
259251
260252
Developer debug context: Attempted SETUP_WITH/BEFORE_WITH on ConstantVariable(int: 3)
261253
262-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0142
263254
264255
from user code:
265256
File "test_error_messages.py", line N, in fn
@@ -287,10 +278,7 @@ def fn(x):
287278
Exception:test
288279
Traceback:
289280
File "test_error_messages.py", line N, in fn
290-
return x + 1
291-
292-
293-
For more details about this graph break, please visit: None""",
281+
return x + 1""",
294282
)
295283

296284
def test_unsupported_builtin(self):
@@ -309,7 +297,6 @@ def fn():
309297
310298
Developer debug context: builtin print [<class 'torch._dynamo.variables.constant.ConstantVariable'>] False
311299
312-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0059
313300
314301
from user code:
315302
File "test_error_messages.py", line N, in fn
@@ -335,7 +322,6 @@ def post_munge(s):
335322
336323
Developer debug context: module: unittest.case, qualname: skip, skip reason: <missing reason>
337324
338-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0007
339325
340326
from user code:
341327
File "test_error_messages.py", line N, in fn
@@ -357,7 +343,6 @@ def fn():
357343
358344
Developer debug context: module: torch._dynamo.decorators, qualname: disable, skip reason: <missing reason>
359345
360-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0007
361346
362347
from user code:
363348
File "test_error_messages.py", line N, in fn
@@ -386,7 +371,6 @@ def post_munge(s):
386371
387372
Developer debug context: qualname: skip, name: skip, filename: `case.py`, skip reason: skipped according trace_rules.lookup unittest
388373
389-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0008
390374
391375
from user code:
392376
File "test_error_messages.py", line N, in fn
@@ -408,7 +392,6 @@ def fn():
408392
409393
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{}`
410394
411-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025
412395
413396
from user code:
414397
File "test_error_messages.py", line N, in fn
@@ -429,7 +412,6 @@ def fn():
429412
430413
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{'msg': ConstantVariable(str: 'test graph break')}`
431414
432-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025
433415
434416
from user code:
435417
File "test_error_messages.py", line N, in fn
@@ -451,7 +433,6 @@ def fn():
451433
452434
Developer debug context: module: _warnings, qualname: warn, skip reason: <missing reason>
453435
454-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0007
455436
456437
from user code:
457438
File "test_error_messages.py", line N, in fn
@@ -479,8 +460,7 @@ def fn(x):
479460
Hint: Consider using torch.utils._pytree - https://github.com/pytorch/pytorch/blob/main/torch/utils/_pytree.py
480461
481462
Developer debug context: module: optree._C, qualname: PyCapsule.flatten, skip reason: <missing reason>
482-
483-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0007""",
463+
""",
484464
)
485465

486466
@scoped_load_inline
@@ -526,8 +506,7 @@ def f(x):
526506
Hint: If it is a third-party C/C++ Python extension, please either wrap it into a PyTorch-understood custom operator (see https://pytorch.org/tutorials/advanced/custom_ops_landing_page.html for more details) or, if it is traceable, use `torch.compiler.allow_in_graph`.
527507
528508
Developer debug context: module: mylib, qualname: PyCapsule.foobar, skip reason: <missing reason>
529-
530-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0007""",
509+
""",
531510
)
532511

533512
cpp_source = """
@@ -579,7 +558,6 @@ def fn(x, y):
579558
580559
Developer debug context: SliceVariable start: ConstantVariable(NoneType: None), stop: TensorVariable(), step: ConstantVariable(NoneType: None)
581560
582-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0038
583561
584562
from user code:
585563
File "test_error_messages.py", line N, in fn
@@ -601,7 +579,6 @@ def fn():
601579
602580
Developer debug context: raised exception ExceptionVariable(<class 'RuntimeError'>)
603581
604-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0088
605582
606583
from user code:
607584
File "test_error_messages.py", line N, in fn
@@ -627,7 +604,6 @@ def fn(mod):
627604
628605
Developer debug context: Foo
629606
630-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0119
631607
632608
from user code:
633609
File "test_error_messages.py", line N, in fn
@@ -656,7 +632,6 @@ def fn(mod, x):
656632
657633
Developer debug context: nn.Module subclass: Foo, name: attr, attribute type: module
658634
659-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0161
660635
661636
from user code:
662637
File "test_error_messages.py", line N, in fn
@@ -686,7 +661,6 @@ def fn():
686661
687662
Developer debug context: Active generic context managers: [GenericContextWrappingVariable(GenericCtxMgr), GenericContextWrappingVariable(GenericCtxMgr)]
688663
689-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0066
690664
691665
from user code:
692666
File "test_error_messages.py", line N, in fn
@@ -701,8 +675,7 @@ def fn():
701675
Hint: Remove the `torch._dynamo.graph_break()` call.
702676
703677
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{}`
704-
705-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025""",
678+
""",
706679
)
707680

708681
def test_load_build_class(self):
@@ -723,7 +696,6 @@ class Foo:
723696
724697
Developer debug context:
725698
726-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0075
727699
728700
from user code:
729701
File "test_error_messages.py", line N, in fn
@@ -756,7 +728,6 @@ def post_munge(s):
756728
Hint: It may be possible to write Dynamo tracing rules for this code. Please report an issue to PyTorch if you encounter this graph break often and it is causing performance issues.
757729
758730
Developer debug context: GET_AITER with args (<torch._dynamo.symbolic_convert.InstructionTranslator object at 0xmem_addr>, Instruction(GET_AITER)
759-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0082
760731
761732
from user code:
762733
File "test_error_messages.py", line N, in fn
@@ -787,7 +758,6 @@ def post_munge(s):
787758
788759
Developer debug context: UserMethodVariable(<function GraphBreakMessagesTest.test_reconstruction_failure.<locals>.Foo.meth at 0xmem_addr>, UserDefinedObjectVariable(Foo))
789760
790-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0092
791761
792762
from user code:
793763
File "test_error_messages.py", line N, in fn
@@ -823,7 +793,6 @@ def post_munge(s):
823793
824794
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{}`
825795
826-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025
827796
User code traceback:
828797
File "test_error_messages.py", line N, in test_reconstruction_failure_gb
829798
torch.compile(fn, backend="eager")()
@@ -843,7 +812,6 @@ def post_munge(s):
843812
844813
Developer debug context: UserMethodVariable(<function GraphBreakMessagesTest.test_reconstruction_failure_gb.<locals>.Foo.meth at 0xmem_addr>, UserDefinedObjectVariable(Foo))
845814
846-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0092
847815
848816
from user code:
849817
File "test_error_messages.py", line N, in fn
@@ -872,7 +840,6 @@ def fn(x):
872840
873841
Developer debug context:
874842
875-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0087
876843
877844
from user code:
878845
File "test_error_messages.py", line N, in fn
@@ -896,7 +863,6 @@ def fn(x):
896863
897864
Developer debug context: attempted to jump with TensorVariable()
898865
899-
For more details about this graph break, please visit: None
900866
901867
from user code:
902868
File "test_error_messages.py", line N, in fn
@@ -963,7 +929,6 @@ def fn(x):
963929
964930
Developer debug context: value: ConstantVariable(bool: False)
965931
966-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0034
967932
968933
from user code:
969934
File "test_error_messages.py", line N, in fn
@@ -1007,7 +972,6 @@ def gn():
1007972
1008973
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{}`
1009974
1010-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025
1011975
1012976
from user code:
1013977
File "test_error_messages.py", line N, in fn
@@ -1060,7 +1024,6 @@ def gn():
10601024
10611025
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{}`
10621026
1063-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025
10641027
10651028
from user code:
10661029
File "test_error_messages.py", line N, in fn
@@ -1096,7 +1059,6 @@ def hn(x):
10961059
10971060
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{}`
10981061
1099-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025
11001062
User code traceback:
11011063
File "test_error_messages.py", line N, in test_nested_compile_user_frames
11021064
torch.compile(fn, backend="eager")(torch.randn(3))
@@ -1210,7 +1172,6 @@ def f3(x):
12101172
12111173
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{}`
12121174
1213-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025
12141175
User code traceback:
12151176
File "test_error_messages.py", line N, in test_graph_break_traceback_collapsed_resume_frames
12161177
f1(torch.randn(3))
@@ -1300,7 +1261,6 @@ def post_munge(s):
13001261
13011262
Developer debug context: <function GraphBreakMessagesTest.test_disable_message.<locals>.f at 0xmem_addr>
13021263
1303-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0098
13041264
13051265
from user code:
13061266
File "test_error_messages.py", line N, in outer
@@ -1322,7 +1282,6 @@ def g(x):
13221282
13231283
Developer debug context: <function GraphBreakMessagesTest.test_disable_message.<locals>.g at 0xmem_addr>
13241284
1325-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0098
13261285
13271286
from user code:
13281287
File "test_error_messages.py", line N, in outer
@@ -1348,7 +1307,6 @@ def forward(self, x):
13481307
13491308
Developer debug context: source: LocalSource(local_name='fn', is_input=True, dynamism=None, is_derefed_cell_contents=False)
13501309
1351-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0148
13521310
13531311
from user code:
13541312
File "test_error_messages.py", line N, in outer

test/dynamo/test_exc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def fn001(x):
4343
4444
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{}`
4545
46-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025
4746
4847
from user code:
4948
File "test_exc.py", line N, in fn001
@@ -183,7 +182,6 @@ def fn001(x):
183182
184183
Developer debug context: Called `torch._dynamo.graph_break()` with args `[]`, kwargs `{}`
185184
186-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0025
187185
User code traceback:
188186
File "test_exc.py", line N, in test_graph_break_log
189187
torch.compile(fn001, backend="eager")(torch.randn(1))

test/dynamo/test_reorder_logs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ def f(x):
210210
Hint: Set `torch._dynamo.config.capture_scalar_outputs = True` or `export TORCHDYNAMO_CAPTURE_SCALAR_OUTPUTS=1` to include these operations in the captured graph.
211211
212212
Developer debug context: call_method TensorVariable() item () {}
213-
214-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0124""", # noqa: B950
213+
""", # noqa: B950
215214
)
216215

217216

test/test_custom_ops.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,8 +1817,7 @@ def f(x):
18171817
Hint: Enable tracing of dynamic shape operators with `torch._dynamo.config.capture_dynamic_output_shape_ops = True`
18181818
18191819
Developer debug context: _torch_testing.numpy_nonzero.default
1820-
1821-
For more details about this graph break, please visit: https://compile-graph-break-site.vercel.app/gb/GB0036""",
1820+
""",
18221821
)
18231822

18241823
# pre-existing problem: torch.compile(dynamic=True) will, by default,

0 commit comments

Comments
 (0)