Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vmap support for slogdet; fix regression from functorch 0.2.1 (#8… #86902

Merged
merged 1 commit into from Oct 13, 2022

Conversation

zou3519
Copy link
Contributor

@zou3519 zou3519 commented Oct 13, 2022

…6815)

This PR adds vmap support for slogdet -- slogdet just decomposes into linalg.slogdet.

This fixes a regression from functorch 0.2.1 (slogdet had a batching rule then, and doesn't anymore). We didn't catch the regression because it seems like slogdet doesn't have an OpInfo (I'm not sure if it had one before).

Test Plan:

…6815)

This PR adds vmap support for slogdet -- slogdet just decomposes into
linalg.slogdet.

This fixes a regression from functorch 0.2.1 (slogdet had a batching
rule then, and doesn't anymore). We didn't catch the regression because
it seems like slogdet doesn't have an OpInfo (I'm not sure if it had one
before).

Test Plan:
- new one-off test.
Pull Request resolved: #86815
Approved by: https://github.com/samdow
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 13, 2022

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/86902

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 089e0e5:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@zou3519
Copy link
Contributor Author

zou3519 commented Oct 13, 2022

Note for reviewers:

  1. functorch 0.2.1 was the version of functorch released alongside PyTorch 1.12.1, so this PR counts as a "regression against the previous minor version"
  2. This is a very low-risk PR (it only changes functorch.vmap behavior over torch.slogdet)

@atalman atalman added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 13, 2022
@malfet malfet merged commit 7e19694 into release/1.13 Oct 13, 2022
@zou3519 zou3519 deleted the 1_13_fix_functorch_regression branch October 13, 2022 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants