Skip to content

Commit 6f23ca5

Browse files
Sidharth123-cpupytorchmergebot
authored andcommitted
[dynamo] sample gb_registry json file for website testing purposes (pytorch#155160)
Pull Request resolved: pytorch#155160 Approved by: https://github.com/StrongerXi, https://github.com/williamwen42
1 parent c8566a0 commit 6f23ca5

File tree

1 file changed

+221
-0
lines changed

1 file changed

+221
-0
lines changed
Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
{
2+
"GB0000": [
3+
{
4+
"Gb_type": "All __torch_function__ overrides returned NotImplemented due to TypeError from user code",
5+
"Context": "fn={fn}, args={args}, kwargs={kwargs}",
6+
"Explanation": "All __torch_function__ overrides for for function {fn} returned NotImplemented",
7+
"Hints": [
8+
"Dynamo has detected that tracing the code will result in an error when running in eager. Please double check that your code doesn't contain a similar error when actually running eager/uncompiled."
9+
]
10+
}
11+
],
12+
"GB0001": [
13+
{
14+
"Gb_type": "Argument of `as_subclass` must be a non-dispatcher-style tensor subclass",
15+
"Context": "{self}.as_subclass({cls})",
16+
"Explanation": "Currently not supported",
17+
"Hints": [
18+
"Avoid this call or move it outside `torch.compile` regione",
19+
"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."
20+
]
21+
}
22+
],
23+
"GB0002": [
24+
{
25+
"Gb_type": "Assertion failed on symbolic shapes",
26+
"Context": "str(sym_expr)",
27+
"Explanation": "",
28+
"Hints": [
29+
"Dynamo has detected that tracing the code will result in an error when running in eager. Please double check that your code doesn't contain a similar error when actually running eager/uncompiled."
30+
]
31+
}
32+
],
33+
"GB0003": [
34+
{
35+
"Gb_type": "Attempt to trace generator",
36+
"Context": "",
37+
"Explanation": "Generators cannot be compiled directly with `torch.compile`.",
38+
"Hints": [
39+
"Call a generator from inside of a non-generator Python function and ",
40+
"compile that function instead.",
41+
"This graph break is fundamental - it is unlikely that Dynamo will ever be able to trace through your code. Consider finding a workaround."
42+
]
43+
}
44+
],
45+
"GB0004": [
46+
{
47+
"Gb_type": "Attempted super().__delattr__() on an object without mutation tracking",
48+
"Context": "call_method {self} {name}",
49+
"Explanation": "Dynamo needs to track mutations on an object before `super().__delattr__` can be used on it. But the object ({self.objvar}) doesn't have attribute mutation tracking enabled.",
50+
"Hints": [
51+
"Ensure the object is tracked by Dynamo's side effect system.",
52+
"This is likely to be a Dynamo bug. Please report an issue to PyTorch."
53+
]
54+
}
55+
],
56+
"GB0005": [
57+
{
58+
"Gb_type": "Attempted to a str() method implemented in C/C++",
59+
"Context": "",
60+
"Explanation": "{type(arg.value)} has a C/C++ based str method. This is not supported.",
61+
"Hints": [
62+
"Write the str method in Python"
63+
]
64+
}
65+
],
66+
"GB0006": [
67+
{
68+
"Gb_type": "Attempted to call a super() attribute that is not a function or method",
69+
"Context": "call_method {self} {name}",
70+
"Explanation": "Dynamo does not know how to trace the call `super().{name}()` because `super().{name}` is not a function or method attribute.",
71+
"Hints": [
72+
"Ensure the attribute accessed via `super()` is a standard method or function."
73+
]
74+
}
75+
],
76+
"GB0007": [
77+
{
78+
"Gb_type": "Attempted to call function marked as skipped",
79+
"Context": "module: {module_name}, qualname: {qualname}, skip reason: {reason}",
80+
"Explanation": "explanation",
81+
"Hints": []
82+
}
83+
],
84+
"GB0008": [
85+
{
86+
"Gb_type": "Attempted to inline function marked as skipped",
87+
"Context": "qualname: {fn_qualname}, name: {func.get_name()}, filename: `{func.get_filename()}`, skip reason: {result.reason}",
88+
"Explanation": "Dynamo developers have intentionally marked that the function `{fn_qualname}` should not be traced.",
89+
"Hints": []
90+
}
91+
],
92+
"GB0009": [
93+
{
94+
"Gb_type": "Attempted to inline function marked as skipped (SkipFunctionVariable)",
95+
"Context": "Attempted to inline a SkipFunctionVariable {func}",
96+
"Explanation": "Attempted to inline a function that was previously determined to be marked as intentionally skipped.",
97+
"Hints": []
98+
}
99+
],
100+
"GB0010": [
101+
{
102+
"Gb_type": "Attempted to read a deleted variable",
103+
"Context": "item: {item}, name: {name}",
104+
"Explanation": "",
105+
"Hints": [
106+
"Dynamo has detected that tracing the code will result in an error when running in eager. Please double check that your code doesn't contain a similar error when actually running eager/uncompiled."
107+
]
108+
}
109+
],
110+
"GB0011": [
111+
{
112+
"Gb_type": "Attempted to read undefined local variable",
113+
"Context": "LOAD_FAST {name}",
114+
"Explanation": "Could not find a local variable with name `{name}`",
115+
"Hints": [
116+
"Dynamo has detected that tracing the code will result in an error when running in eager. Please double check that your code doesn't contain a similar error when actually running eager/uncompiled."
117+
]
118+
}
119+
],
120+
"GB0012": [
121+
{
122+
"Gb_type": "Attempted to read undefined local variable (implicit)",
123+
"Context": "LOAD_FAST {name}",
124+
"Explanation": "Could not find an implicit local variable with name `{name}`",
125+
"Hints": [
126+
"This happens in dict/list comprehensions",
127+
"Dynamo has detected that tracing the code will result in an error when running in eager. Please double check that your code doesn't contain a similar error when actually running eager/uncompiled."
128+
]
129+
}
130+
],
131+
"GB0013": [
132+
{
133+
"Gb_type": "Attempted to represent unregistered RemovableHandle",
134+
"Context": "",
135+
"Explanation": "Dynamo attempted to build a representation of a torch.utils.hooks.RemovableHandle, which is not supported. This happens because the RemovableHandle was created in another frame.",
136+
"Hints": []
137+
}
138+
],
139+
"GB0014": [
140+
{
141+
"Gb_type": "Attempted to wrap RNN, GRU, or LSTM",
142+
"Context": "str(value)",
143+
"Explanation": "Dynamo does not support RNN, GRU, or LSTM.",
144+
"Hints": [
145+
"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."
146+
]
147+
}
148+
],
149+
"GB0015": [
150+
{
151+
"Gb_type": "Attempted to wrap sparse Tensor",
152+
"Context": "",
153+
"Explanation": "torch.compile does not support sparse Tensors",
154+
"Hints": [
155+
"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."
156+
]
157+
}
158+
],
159+
"GB0016": [
160+
{
161+
"Gb_type": "Attempted to wrap strided NestedTensor",
162+
"Context": "",
163+
"Explanation": "torch.compile does not support strided NestedTensor",
164+
"Hints": []
165+
}
166+
],
167+
"GB0017": [
168+
{
169+
"Gb_type": "Attempted to wrap torch._higher_order_ops.invoke_subgraph",
170+
"Context": "",
171+
"Explanation": "Directly using invoke_subgraph is not supported. Use mark_compile_region",
172+
"Hints": []
173+
}
174+
],
175+
"GB0018": [
176+
{
177+
"Gb_type": "Attempted to wrap unbacked SymInt",
178+
"Context": "",
179+
"Explanation": "Unbacked SymInt input is not supported yet.",
180+
"Hints": [
181+
"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."
182+
]
183+
}
184+
],
185+
"GB0019": [
186+
{
187+
"Gb_type": "AutogradFunctionContextVariable escaped Dynamo-traced region",
188+
"Context": "",
189+
"Explanation": "We cannot reconstruct a torch.autograd.Function's context object.",
190+
"Hints": []
191+
}
192+
],
193+
"GB0020": [
194+
{
195+
"Gb_type": "BUILD_STRING key conflict",
196+
"Context": "format_string_parts: {format_string_parts}, kwargs: {kwargs}, part.sym_kwargs: {part.sym_kwargs}",
197+
"Explanation": "Failed to build format string due to key conflict",
198+
"Hints": [
199+
"Dynamo has detected that tracing the code will result in an error when running in eager. Please double check that your code doesn't contain a similar error when actually running eager/uncompiled."
200+
]
201+
}
202+
],
203+
"GB0021": [
204+
{
205+
"Gb_type": "BUILD_STRING type error",
206+
"Context": "str(part)",
207+
"Explanation": "Format string part type is not correct - expected constant or format string.",
208+
"Hints": [
209+
"Dynamo has detected that tracing the code will result in an error when running in eager. Please double check that your code doesn't contain a similar error when actually running eager/uncompiled."
210+
]
211+
}
212+
],
213+
"GB0022": [
214+
{
215+
"Gb_type": "Bad import result",
216+
"Context": "typestr(value)",
217+
"Explanation": "Import result is not a Python module.",
218+
"Hints": []
219+
}
220+
]
221+
}

0 commit comments

Comments
 (0)