Short name describing what triggered the graph break
Unsupported Tensor.item() call with capture_scalar_outputs=False
Values or code snippet captured at the break point
call_method {self} item {args} {kwargs}
Explanation of why the graph break was triggered
Dynamo does not support tracing Tensor.item()
with config.capture_scalar_outputs=False.
Hints on how to resolve the graph break
torch._dynamo.config.capture_scalar_outputs = True
export TORCHDYNAMO_CAPTURE_SCALAR_OUTPUTS=1