GB0371

Graph-Break Type

Short name describing what triggered the graph break

autograd.grad with output that requires grad

Context

Values or code snippet captured at the break point

context

Explanation

Explanation of why the graph break was triggered

The compiled function uses torch.autograd.grad() and returns a tensor that still requires gradients and is connected to the autograd.grad() computation. This would cause aot_autograd to attempt ‘backward through graph a second time’, which is not supported.

Hints

Hints on how to resolve the graph break

Additional Information

Click here to add Additional Info

Back to Registry