Skip to content

Commit

Permalink
Enhance torch.vmap support from inside torch.compile (pytorch#116050)
Browse files Browse the repository at this point in the history
This work rewrites vmap support in torch.compile by inlining most of
the frames into the existing FX graph. It also unlocks to PyTorch to
support features that were previously missing, such as keyword args.

Fixes: pytorch#114306

Pull Request resolved: pytorch#116050
Approved by: https://github.com/zou3519
  • Loading branch information
guilhermeleobas authored and pytorchmergebot committed Jan 22, 2024
1 parent b2a3d6b commit 80cf0ce
Show file tree
Hide file tree
Showing 18 changed files with 642 additions and 412 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ per-file-ignores =
torch/utils/cpp_extension.py: B950
torchgen/api/types/__init__.py: F401,F403
torchgen/executorch/api/types/__init__.py: F401,F403
test/dynamo/test_higher_order_ops.py: B950
torch/testing/_internal/dynamo_test_failures.py: B950
optional-ascii-coding = True
exclude =
./.git,
Expand Down
Loading

0 comments on commit 80cf0ce

Please sign in to comment.