GB9509

Graph-Break Type

Short name describing what triggered the graph break

torch.switch: improper index

Context

Values or code snippet captured at the break point

str(index)

Explanation

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

Hints on how to resolve the graph break

Additional Information

Click here to add Additional Info

Back to Registry