GB1220
Graph-Break Type
Short name describing what triggered the graph break
Untraceable C tp_richcompare
Context
Values or code snippet captured at the break point
richcompare_impl {self} {op}
Explanation
Explanation of why the graph break was triggered
{cls.name} defines a C comparison method that Dynamo cannot trace into.
Hints
Hints on how to resolve the graph break
- Use torch._dynamo.allow_c_slot({cls.name}) to
- register it as safe if its comparison methods are pure
- and deterministic.
- 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.
Click here to add Additional Info
Back to Registry