Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teach dynamo about torch.func.jvp (#119926)
Summary: List of changes: - Replace JVP_NESTING by torch._C._functorch.maybe_current_level() - Remove all increment nesting functions from wrap_fx_proxy_cls - fwAD.make_dual receives the dual_level as keyword argument - Add jvp_increment_nesting, set_fwd_grad_enabled and dual_level context managers to dynamo X-link: pytorch/pytorch#119926 Approved by: https://github.com/zou3519 Reviewed By: huydhn Differential Revision: D55273902 fbshipit-source-id: ce4d4f2f74a3c5545de62b13fae5f5a954f6cc3a
- Loading branch information