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

Port _test_adjust_fn to pytest #3845

Merged
merged 2 commits into from
May 17, 2021
Merged

Conversation

NicolasHug
Copy link
Member

This PR ports the tests relying on _test_adjust_fn to pytest.
This will allow properly skipping the CPU test on CI machines that have a GPU, and conversly skip the GPU tests on CI machines that don't have cuda

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@NicolasHug NicolasHug merged commit 32bccc5 into pytorch:master May 17, 2021
facebook-github-bot pushed a commit that referenced this pull request May 19, 2021
Reviewed By: cpuhrsch

Differential Revision: D28538760

fbshipit-source-id: 5c4b3cac090e244e0a97f9260ac1dbd757e132a6
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