GB0287
Graph-Break Type
Short name describing what triggered the graph break
unsupported type.dict[‘annotations’].get call
Context
Values or code snippet captured at the break point
call_function {self}, args: {args}, kwargs: {kwargs}
Explanation
Explanation of why the graph break was triggered
torch.compile only supports calling type.dict[‘annotations’].get on a single constant argument (i.e. a type).
Hints
Hints on how to resolve the graph break
- Make sure your call to type.dict[‘annotations’] only has
- one positional argument (no keyword arguments).
- Make sure the argument to type.dict[‘annotations’] is a constant
- (i.e. type). For example,
object, int, MyCustomClass.
- 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