Skip to content

Commit

Permalink
Check _interpret_call output in the lookaside of `torch.autograd.Fu…
Browse files Browse the repository at this point in the history
…nction`. (#1411)
  • Loading branch information
crcrpar authored Nov 11, 2024
1 parent db84e15 commit a13a099
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thunder/core/jit_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,8 @@ def _general_jit_torch_autograd_function_apply_lookaside(obj: Any, *args, **kwar
trace_of_fwd, fwd_output_provenance = _convert_pytorchfunc_to_thundertrace(
custom_forward, True, wrapped_ctx, *args, **kwargs
)
if trace_of_fwd is INTERPRETER_SIGNALS.EXCEPTION_RAISED:
return trace_of_fwd

# Forward.
unwrapped_custom_forward_args = tree_map(lambda a: unwrap(a), args)
Expand Down

0 comments on commit a13a099

Please sign in to comment.