Below are all known graph breaks detected by Dynamo.
- GB0000 — All torch_function overrides returned NotImplemented due to TypeError from user code
- GB0001 — Argument of
as_subclass must be a non-dispatcher-style tensor subclass
- GB0002 — Assertion failed on symbolic shapes
- GB0003 — Attempt to trace generator
- GB0004 — Attempted super().delattr() on an object without mutation tracking
- GB0005 — Attempted to a str() method implemented in C/C++
- GB0006 — Attempted to call a super() attribute that is not a function or method
- GB0007 — Attempted to call function marked as skipped
- GB0008 — Attempted to inline function marked as skipped
- GB0009 — Attempted to inline function marked as skipped (SkipFunctionVariable)
- GB0010 — Attempted to read a deleted variable
- GB0011 — Attempted to read undefined local variable
- GB0012 — Attempted to read undefined local variable (implicit)
- GB0013 — Attempted to represent unregistered RemovableHandle
- GB0014 — Attempted to wrap RNN, GRU, or LSTM
- GB0015 — Attempted to wrap sparse Tensor
- GB0016 — Attempted to wrap strided NestedTensor
- GB0017 — Attempted to wrap torch._higher_order_ops.invoke_subgraph
- GB0018 — Attempted to wrap unbacked SymInt
- GB0019 — AutogradFunctionContextVariable escaped Dynamo-traced region
- GB0020 — BUILD_STRING key conflict
- GB0021 — BUILD_STRING type error
- GB0022 — Bad import result
- GB0023 — Builtin
operator.* comparison with constant self failed
- GB0024 — CLEANUP_THROW with StopIteration
- GB0025 — Call to
torch._dynamo.graph_break()
- GB0026 — Calling subclass default constructor with more than tensor argument
- GB0027 — Cannot check Tensor object identity without its fake value
- GB0028 — Caught non-Exception value
- GB0029 — Compilation of intermediate hooks requires compiled autograd
- GB0030 — ComptimeContext graph break
- GB0031 — Custom getattribute in nn.Module attribute access
- GB0032 — Custom getattribute in nn.Module dict key check
- GB0033 — Data dependent operator
- GB0034 — Data-dependent assertion failed (cannot compile partial graph)
- GB0035 — Data-dependent branching with non-constant bool
- GB0036 — Dynamic shape operator
- GB0037 — Dynamic shape operator (no meta kernel)
- GB0038 — Dynamic slicing with Tensor arguments
- GB0039 — Dynamo cache limit exceeded
- GB0040 — Encountered aliasing during higher order op tracing
- GB0041 — Encountered input mutation during higher order op tracing
- GB0042 — Encountered non user function variable during invoke_subgraph HOP tracing
- GB0043 — Encountered non-PT2-compliant op
- GB0044 — Encountered strided NestedTensor in automatic dynamic dim determination
- GB0045 — Encountered tensor.is_inference() during tracing
- GB0046 — Encountered torch.is_inference_mode_enabled during tracing
- GB0047 — Encountered unconverted argument when attempting to inline
- GB0048 — Error getting associated real value
- GB0049 — Error when attempting to resolve op packet
- GB0050 — Exception with bad expected type
- GB0051 — Exception with non-type expectation
- GB0052 — Excessive RestartAnalysis() calls
- GB0053 — FSDP with use_orig_params=False
- GB0054 — Failed to construct Enum variable
- GB0055 — Failed to convert args/kwargs to proxy
- GB0056 — Failed to mutate tensor data attribute
- GB0057 — Failed to raise exception
- GB0058 — Failed to set tensor attribute
- GB0059 — Failed to trace builtin operator
- GB0060 — Failed to trace unittest method
- GB0061 — Failed to unpack object for BUILD_LIST_UNPACK
- GB0062 — Failed to unpack object for UNPACK_EX
- GB0063 — Failed to unpack object for UNPACK_SEQUENCE
- GB0064 — Fake tensor propagation exception
- GB0065 — Graph break in inlined function
- GB0066 — Graph break under GenericContextWrappingVariable
- GB0067 — HigherOrderOperator: Mutating a variable not in the current scope (SideEffects)
- GB0068 — Illegal method invocation in strict mode
- GB0069 — Import failure
- GB0070 — Indexing list with non-scalar tensor
- GB0071 — Inline attempt with self
- GB0072 — Inplace op on input tensor
- GB0073 — Invoking an nn.Module inside a HigherOrderOperator
- GB0074 — Invoking an nn.Module inside a higher order operator
- GB0075 — LOAD_BUILD_CLASS bytecode not supported
- GB0076 — LOAD_FAST_CHECK on uninitialized variable
- GB0077 — Length mismatch when unpacking object for UNPACK_SEQUENCE
- GB0078 — Limitation of `nonstrict_trace
- GB0079 — Missing CALL_INTRINSIC_1 handler
- GB0080 — Missing FakeTensor example value
- GB0081 — Missing attribute when running call_method node
- GB0082 — Missing bytecode handler
- GB0083 — Module-level backwards hooks require compiled autograd.
- GB0084 — Non-constant attribute given to
super().__delattr__()
- GB0085 — Non-function or method in subclass of torch.autograd.Function
- GB0086 — Not a Python constant
- GB0087 — NotImplementedError/UnsupportedFakeTensorException when running FX node
- GB0088 — Observed exception
- GB0089 — Observed exception (EXCEPT_HANDLER)
- GB0090 — Operator does not support running with fake tensors
- GB0091 — Read uninitialized cell
- GB0092 — Reconstruction failure
- GB0093 — Reconstruction failure: source.reconstruct not implemented
- GB0094 — SEND with bad type
- GB0095 — Set Exception object
__traceback__ attribute to not-None
- GB0096 — Should not compile partial graph (STORE_ATTR)
- GB0097 — Side effect on existing deque with limited maxlen
- GB0098 — Skip calling
torch.compiler.disable()d function
- GB0099 — Skip inlining
torch.compiler.disable()d function
- GB0100 — Storing Tensor hook handle in globals
- GB0101 — Storing Tensor hook handle in globals (inline call)
- GB0102 — Strict mode banned op
- GB0103 — Tensor subclass overridden method call
- GB0104 — Tensor with grad_fn()
- GB0105 — Tensor.numpy() with trace_numpy=False
- GB0106 — Tensor.numpy() without NumPy installed
- GB0107 — Tensor.random_ op
- GB0108 — Tensor.retain_grad() with AOTDispatcher
- GB0109 — Tensor.tolist() with non-integer tensor
- GB0110 — Tensor.uniform_ op called with
from keyword
- GB0111 — TypeError from user code
- GB0112 — TypeError when making fake tensor call
- GB0113 — Unable to resolve super getattr
- GB0114 — Unexpected failure during itertools.accumulate() iteration
- GB0115 — Unexpected failure during itertools.groupby() iteration
- GB0116 — Unexpected type in sourceless builder
- GB0117 — Unhandled args for method
- GB0118 — Unimplemented next() call
- GB0119 — Uninitialized nn.Module
- GB0120 — Unreachable sub-generator code
- GB0121 — UnspecializedNNModuleVariable missing method
- GB0122 — Unsupported SourceType
- GB0123 — Unsupported Tensor.backward() call
- GB0124 — Unsupported Tensor.item() call with capture_scalar_outputs=False
- GB0125 — Unsupported Tensor.requires_grad_() call
- GB0126 — Unsupported Tensor.resize_() call
- GB0127 — Unsupported Tensor.resize_as_() call
- GB0128 — Unsupported Tensor.set_() call
- GB0129 — Unsupported Tensor.sparse_resize_() call
- GB0130 — Unsupported Tensor.sparse_resize_and_clear_() call
- GB0131 — Unsupported setitem/setattr inline attempt
- GB0132 — Unsupported
func in itertools.accumulate
- GB0133 — Unsupported arguments for itertools.accumulate
- GB0134 — Unsupported arguments for itertools.groupby
- GB0135 — Unsupported attribute assignment on Exception object
- GB0136 — Unsupported attribute for range() object
- GB0137 — Unsupported attribute for slice() object
- GB0138 — Unsupported autograd.Function context
save_for_backward
- GB0139 — Unsupported autograd.Function context method
- GB0140 — Unsupported autograd.Function method
- GB0141 — Unsupported call_id() without source
- GB0142 — Unsupported context manager
- GB0143 — Unsupported conversion for slice assignment
- GB0144 — Unsupported custom jvp
- GB0145 — Unsupported custom vjp
- GB0146 — Unsupported event method
- GB0147 — Unsupported function call
- GB0148 — Unsupported function call (delayed)
- GB0149 — Unsupported functorch tracing attempt
- GB0150 — Unsupported hasattr call
- GB0151 — Unsupported inspect call
- GB0152 — Unsupported key type for itertools.groupby
- GB0153 — Unsupported key type for nn.Module.getitem
- GB0154 — Unsupported kwargs for itertools.accumulate
- GB0155 — Unsupported kwargs for itertools.groupby
- GB0156 — Unsupported method call
- GB0157 — Unsupported ndarray attribute access
- GB0158 — Unsupported ndarray method call
- GB0159 — Unsupported ndarray.version access
- GB0160 — Unsupported next() call
- GB0161 — Unsupported nn.Module attribute type
- GB0162 — Unsupported super().init() call
- GB0163 — Unsupported tensor subclass attribute access
- GB0164 — Unsupported tensor subclass overridden attribute access
- GB0165 — Unsupported torch._C._ImperativeEngine method
- GB0166 — Unsupported torch._C._ImperativeEngine.queue_callback()
- GB0167 — Variadic function call with bad args/kwargs type
- GB0168 — Variadic function call with bad flags
- GB0169 — Write to immutable cell
- GB0170 — Data-dependent branching
- GB0171 — assert with non-string message
- GB0172 — async_op=True for distributed collectives
- GB0173 — backward_state does not support export
- GB0174 — bad args to builtin cast()
- GB0175 — builtin isinstance() cannot determine type of argument
- GB0176 — call_id() without associated real value
- GB0177 — can’t handle functions not implemented in python
- GB0178 — constant fold exception
- GB0179 — copy.deepcopy()
- GB0180 — dataclass fields failure
- GB0181 — dtype mismatch between tensor and its gradient
- GB0182 — failed to broadcast when attempting Tensor comparison op
- GB0183 — failed to call dict.fromkeys()
- GB0184 — failed to call str() on user defined object
- GB0185 — failed to convert numpy.ndarray to Tensor
- GB0186 — functools.partial() with non-literal keyword
- GB0187 — functools.wraps
- GB0188 — getattr with no source
- GB0189 — getattr() on nn.Module with pending mutation
- GB0190 — getattr() with non-constant name argument
- GB0191 — id() with unsupported args
- GB0192 — input iterator to itertools.cycle has too many items
- GB0193 — invalid call to builtin op handler
- GB0194 — isinstance() called on user defined object with C extensions
- GB0195 — issubclass() with non-constant arguments
- GB0196 — key not found in dict
- GB0197 — list elements are pointing to the list itself
- GB0198 — mapping proxy affected by dictionary mutation
- GB0199 — mapping proxy cannot be reconstructed
- GB0200 — missing BUILD_SET handler
- GB0201 — namedtuple construction
- GB0202 — non-const argument in nn.Module method
- GB0203 — non-const keys in dict_keys
- GB0204 — non-const keys in mappingproxy
- GB0205 — proxy not set
- GB0206 — setattr() on Tensor.requires_grad
- GB0207 — sort with non-constant keys
- GB0208 — torch.* op returned non-Tensor
- GB0209 — torch.autograd._unsafe_preserve_version_counter escaped from compiled region
- GB0210 — torch.distributed package is not available!
- GB0211 — torch.nn.Module with a non-function custom getattr
- GB0212 — torch.profiler object escaped from compiled region
- GB0213 — unimplemented builtin op on tensor arguments
- GB0214 — unsupported SymNode comparison op
- GB0215 — unsupported Tensor comparison op
- GB0216 — unsupported grid type for triton hop check_grid
- GB0217 — unsupported hasattr operation
- GB0218 — unsupported index(Tensor)
- GB0219 — Backend compiler exception
- GB0220 — Failed to mutate tensor data attribute to different dtype
- GB0221 — non-generator contextlib.contextmanager
- GB0222 — Attempted to wrap a set with tensors
- GB0223 — torch.compile call with > 1 args
- GB0224 — Attempted to call torch in-graph function on only torch.SymInt arguments
- GB0225 — Attempted to use tensor creation function with requires_grad=True
- GB0226 —
torch.nn.Parameter() with unsupported data type
- GB0227 — Attempted to use torch.nn.Parameter constructor with tensor subclass
- GB0228 —
torch.nn.Parameter: cannot convert to traceable tracable
- GB0229 — Unexpected type of data placeholder op for parameter construction
- GB0230 — Attempted to use torch.use_deterministic_algorithms(warn_only=True)
- GB0231 — call
torch.from_numpy with torch._dynamo.config.trace_numpy=False
- GB0232 —
torch.from_numpy with NumPy unavailable
- GB0233 — Attempted to use strided NestedTensor
- GB0234 — Attempted to pop from empty torch function mode stack
- GB0235 —
torch.nn.Parameter with non-constant Tensor attributes
- GB0236 — Invalid input type for nonstrict_trace-ed function
- GB0237 — non-constant
requires_grad argument to torch.nn.Parameter
- GB0238 — Input marked with
pytree.register_constant constructed in the torch.compile region
- GB0239 — Invalid use of pytree_flatten with nonstrict_trace-ed function
- GB0240 — Shape mismatch with out= list of tensor variants
- GB0241 — Attempted to call op with non-contiguous
out= list of tensors
- GB0242 — Attempted to call op with non-contiguous
out= tensor
- GB0243 — Attempted to use
torch.nn.modules.utils._ntuple with unsupported argument type
- GB0244 — Attempted to use
torch.nn.Parameter() with export
- GB0245 — Attempted to use
nested_tensor with non-list input
- GB0246 — Attempted to use
torch.nn.functional.one_hot with data-dependent output shape
- GB0247 — Shape mismatch with out= tensor variant
- GB0248 — improper torch.get_device_module arguments
- GB0249 — bad device argument to torch.accelerator.current_stream
- GB0250 — ndarray.astype(object)
- GB0251 — Unsupported output type for nonstrict_trace-ed function
- GB0252 — could not find name in object’s mro
- GB0253 — call_method on generator
- GB0254 — non-const setattr name on user-defined object
- GB0255 — attempted to call sourceless user-defined object as a method
- GB0256 — User-defined object with non-function getattr
- GB0257 — TypedDict with optional keys
- GB0258 — collections.deque() with bad arguments
- GB0259 — collections.deque() with bad iterable argument
- GB0260 — missing args to functools.partial
- GB0261 — User-defined object method with non-function func
- GB0262 — unsupported contextlib.* API
- GB0263 — attempted to trace contextlib.contextmanager
- GB0264 — Attempted to use
torch.nn.Parameter() constructor with Dynamo
- GB0265 — FakeScriptObject missing method implementation
- GB0266 — Weird method call on TorchScript object
- GB0267 — Attempted to access non-callable attribute of TorchScript object
- GB0268 — Unsupported kwargs for itertools.product
- GB0269 — Forced graph break on leaf function
- GB0270 — unimplemented builtin op vars() with no arguments
- GB0271 — Class attribute mutation when the dict was already materialized
- GB0272 — Failed to make weakref to User Object when storing by ID
- GB0273 — Keyword args passed to exception constructor
- GB0274 — Attempted to reconstruct context manager’s enter method
- GB0275 — torch._dynamo.step_unsupported() with empty checkpoint
- GB0276 — Failed to make weakref to User Object
- GB0277 — Attempted to wrap sparse Tensor with VariableTracker
- GB0278 — Unsupported dict type for fromkeys()
- GB0279 — torch.fx.traceback.annotate escaped from compiled region
- GB0280 — 1-arg super not implemented
- GB0281 — Invalid or non-const argument in nn.Module getitem
- GB0282 — Placement with custom getattr not supported
- GB0283 — Failed to make weakref to graph-created external object
- GB0284 — cannot resume from torch._dynamo.step_unsupported()
- GB0285 — unsupported arguments to torch.accelerator.current_stream
- GB0286 — bad device argument to torch.get_device_module
- GB0287 — unsupported type.dict[‘annotations’].get call
- GB0288 — Can’t extract message from torch._check()
- GB0289 — unsupported method call on
typing variable
- GB0290 — attempted to trace numpy.* function as a method
- GB0291 — logging.Logger method not supported for non-export cases
- GB0292 — constant-like method call with unsupported return type
- GB0293 — attempted to trace numpy function with config.trace_numpy=False
- GB0294 — attempted to trace numpy function unsupported by PyTorch
- GB0295 — cannot reconstruct NullVariable in Python < 3.11
- GB0296 — attempted to reorder a debugging function that can’t actually be reordered
- GB0297 — random.Random() with improper arguments
- GB0298 — attempted to trace torch._numpy.random function with config.use_numpy_random_stream=True
- GB0299 — constant-like method call with non-constant args
- GB0300 — numpy function that produces a const collection type encountered non-const arguments
- GB0301 — HOP: non torch.Tensor leaf
- GB0302 — HOP: non-callable variable
- GB0303 — torch.while_loop: improper args/kwargs
- GB0304 — torch.while_loop: improper additional_inputs
- GB0305 — invalid set_subgraph_inputs and sub_kwargs settings
- GB0306 — unsupported HigherOrderOperator
- GB0307 — unsupported HigherOrderOperator function call
- GB0308 — torch.while_loop: unsupported cond_fn return type
- GB0309 — torch.cond: improper args/kwargs
- GB0310 — torch.cond: improper predicate
- GB0311 — torch.cond: improper operands
- GB0312 — torch.cond: improper operands contents
- GB0313 — torch.cond: differing branch outputs
- GB0314 — HOP body output unsupported
- GB0315 — torch.associative_scan: improper xs
- GB0316 — torch.associative_scan: improper additional_inputs
- GB0317 — torch.associative_scan: zero-sized tensor
- GB0318 — torch.associative_scan: combine_fn improper number of leaves
- GB0319 — torch.associative_scan: mismatched input/output tree structure
- GB0320 — torch.scan: improper xs
- GB0321 — torch.scan: improper init
- GB0322 — torch.scan: no init leaves
- GB0323 — torch.scan: improper additional_inputs
- GB0324 — torch.scan: zero-sized tensor
- GB0325 — torch.map: kwargs not supported
- GB0326 — torch.map: improper inputs
- GB0327 — executorch_call_delegate: kwargs not supported
- GB0328 — torch.func.functional_call capture is disabled
- GB0329 — WrapHigherOrderVariable: kwargs unexpected
- GB0330 — wrap_with_set_grad_enabled: unexpected kwargs
- GB0331 — wrap_with_set_grad_enabled: non-constant grad_enabled
- GB0332 — wrap_with_set_grad_enabled: unexpected freevars
- GB0333 — wrap_with_autocast: unexpected kwargs
- GB0334 — wrap_with_autocast: unexpected freevars
- GB0335 — hints_wrapper: improper args/kwargs
- GB0336 — out_dtype: unexpected kwargs
- GB0337 — strict_mode: unexpected kwargs
- GB0338 — invoke_subgraph: kwargs unexpected
- GB0339 — torch.while_loop: infinite loop detected
- GB0340 — torch.cond: unsupported branch return type
- GB0341 — torch.associative_scan: improper args
- GB0342 — torch.scan: improper combine_fn
- GB0343 — torch.scan: improper combine_fn number of returns
- GB0344 — wrap_with_autocast: expected constant arg
- GB0345 — strict_mode: improper args
- GB0346 — autograd.Function.apply: non-function or method forward
- GB0347 — autograd.Function.apply: _materialize_non_diff_grads mutation
- GB0348 — autograd.Function.apply: non-function or method backward
- GB0349 — cannot unwrap variable for check_meta_consistency
- GB0350 — torch.cond: unsupported branch return type (constant non-int)
- GB0351 — HOP body taking non-Tensor as input
- GB0352 — autograd.Function.apply: non-function or method backward (2)
- GB0353 — rewrite_signature: cannot trace optional function input
- GB0354 — failed to find name in frame builtins
- GB0355 — non-single Tensor return unsupported
- GB0356 — failed to handle argument for FlexAttentionBackward HOP
- GB0357 — UnspecializedNNModuleVariable wrapped around ScriptModules unsupported
- GB0358 — optimizer: pending mutation on parameter
- GB0359 — unsupported torch._C._SDPAParams attribute
- GB0360 — torch.fx.experimental.symbolic_shapes.guard_scalar branch not supported
- GB0361 — triton kernel unsupported feature