GB2736

Graph-Break Type

Short name describing what triggered the graph break

builtin isinstance() with custom type check on tensor

Context

Values or code snippet captured at the break point

isinstance({arg}, {isinstance_type})

Explanation

Explanation of why the graph break was triggered

Dynamo cannot soundly trace arbitrary custom instancecheck or subclasscheck hooks on tensor values because the hook may read external mutable state.

Hints

Hints on how to resolve the graph break

Additional Information

Click here to add Additional Info

Back to Registry