[vmap] Prepend "legacy" to files for old vmap implementation (#90324)

We have an older torch.vmap implementation. It is no longer supported.
It still needs to exist somewhere for the sake of BC with
torch.autograd.functional.

This PR makes it clear what files are meant for implementing the old
vmap implementation. I've seen a couple of PRs recently adding support
for the old vmap implementation, so this will lessen the confusion.

Test Plan:
- CI
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90324
Approved by: https://github.com/samdow
This commit is contained in:
Richard Zou
2022-12-07 07:48:41 -08:00
committed by PyTorch MergeBot
parent 94d800ffd1
commit 4b1053497c
21 changed files with 25 additions and 25 deletions

2506
test/test_legacy_vmap.py Normal file

File diff suppressed because it is too large Load Diff