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

[FBcode->GH] Parametrize test_perspective (#3748) #3749

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

NicolasHug
Copy link
Member

Summary:
Pull Request resolved: #3748

This PR parametrizes the perspective-related tests, and avoids having deeply nested for-loops which will help debugging. "What" gets tested is left unchanged.

The newly-introduced cpu_and_gpu() generator along with the dont_collect mark is a logic that allows to not run CPU tests on GPU machines (and vice versa).

Reviewed By: fmassa

Differential Revision: D27908299

fbshipit-source-id: 24a10a89fe90ae0a9e62de4bc7e768a669ebf212

Summary:
Pull Request resolved: pytorch#3748

This PR parametrizes the `perspective`-related tests, and avoids having deeply nested for-loops which will help debugging. "What" gets tested is left unchanged.

The newly-introduced `cpu_and_gpu()` generator along with the `dont_collect` mark is a logic that allows to not run CPU tests on GPU machines (and vice versa).

Reviewed By: fmassa

Differential Revision: D27908299

fbshipit-source-id: 24a10a89fe90ae0a9e62de4bc7e768a669ebf212
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.

Stamping

@NicolasHug NicolasHug merged commit 1b0bd0e into pytorch:master Apr 28, 2021
@NicolasHug NicolasHug deleted the parametrize_tests branch April 28, 2021 18:15
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