Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Aug 5, 2022

Stack from ghstack:

This PR refactors get_fallback_and_vmap_exhaustive into two helper
functions, generate_vmap_inputs and
compute_quantities_for_vmap_test. The former is responsible for
generating in_dims and the batched inputs; the latter is responsible for
computing vmap(blah) and the fallback.

The rationale for the refactor is that I want to use these pieces
separately in in-place vmap testing, which is coming soon.

Test Plan:

  • run tests

This PR refactors get_fallback_and_vmap_exhaustive into two helper
functions, `generate_vmap_inputs` and
`compute_quantities_for_vmap_test`. The former is responsible for
generating in_dims and the batched inputs; the latter is responsible for
computing vmap(blah) and the fallback.

The rationale for the refactor is that I want to use these pieces
separately in in-place vmap testing, which is coming soon.

Test Plan:
- run tests

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 5, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

As of commit 566acf8 (more details on the Dr. CI page):

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

pytorchmergebot pushed a commit that referenced this pull request Aug 8, 2022
This PR refactors get_fallback_and_vmap_exhaustive into two helper
functions, `generate_vmap_inputs` and
`compute_quantities_for_vmap_test`. The former is responsible for
generating in_dims and the batched inputs; the latter is responsible for
computing vmap(blah) and the fallback.

The rationale for the refactor is that I want to use these pieces
separately in in-place vmap testing, which is coming soon.

Test Plan:
- run tests
Pull Request resolved: #82897
Approved by: https://github.com/Chillee
facebook-github-bot pushed a commit to pytorch/functorch that referenced this pull request Aug 9, 2022
Summary:
This PR refactors get_fallback_and_vmap_exhaustive into two helper
functions, `generate_vmap_inputs` and
`compute_quantities_for_vmap_test`. The former is responsible for
generating in_dims and the batched inputs; the latter is responsible for
computing vmap(blah) and the fallback.

The rationale for the refactor is that I want to use these pieces
separately in in-place vmap testing, which is coming soon.

X-link: pytorch/pytorch#82897
Approved by: https://github.com/Chillee

Reviewed By: kit1980

Differential Revision: D38505902

Pulled By: zou3519

fbshipit-source-id: 3897ce36f954682469769d9ece0ecfc0e72b7545
facebook-github-bot pushed a commit that referenced this pull request Aug 9, 2022
Summary:
This PR refactors get_fallback_and_vmap_exhaustive into two helper
functions, `generate_vmap_inputs` and
`compute_quantities_for_vmap_test`. The former is responsible for
generating in_dims and the batched inputs; the latter is responsible for
computing vmap(blah) and the fallback.

The rationale for the refactor is that I want to use these pieces
separately in in-place vmap testing, which is coming soon.

Pull Request resolved: #82897
Approved by: https://github.com/Chillee

Test Plan:
contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/7c993d7f0358ab8eff3c0e0f9d9d2374678b6e70

Test plan from GitHub:
- run tests

Reviewed By: kit1980

Differential Revision: D38505902

Pulled By: zou3519

fbshipit-source-id: 3897ce36f954682469769d9ece0ecfc0e72b7545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants