Enhance torch.vmap support from inside torch.compile (#116050)

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: https://github.com/pytorch/pytorch/issues/114306

Pull Request resolved: https://github.com/pytorch/pytorch/pull/116050
Approved by: https://github.com/zou3519
This commit is contained in:
Guilherme Leobas
2024-01-19 12:36:51 -03:00
committed by PyTorch MergeBot
parent b2a3d6ba0d
commit 80cf0ce153
18 changed files with 642 additions and 412 deletions

View File

@ -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,