Short name describing what triggered the graph break
torch.switch: improper index
Values or code snippet captured at the break point
str(index)
Explanation of why the graph break was triggered
Expected index to be an int or a tensor with a single item but got {str(type(index))} with original python type {str(index.python_type())}.
Hints on how to resolve the graph break
torch.compile call, or by using torch.compiler.set_stance("force_eager").