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 image or video tolerances for CUDA vs CPU tests #6924

Merged
merged 3 commits into from
Nov 7, 2022

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Nov 7, 2022

Follow-up to #6921. Currently we have a bunch of tests that differ when comparing CPU vs. CUDA. Fortunately, the difference is minimal, i.e. atol=1 for uint8 and atol=1 / 255 for float32 is sufficient.

These errors have not been surfaced before, because we don't have prototype CUDA tests in CI. Together with #6923, there should be no more errors in the test suite regarding CUDA.

cc @vfdev-5 @datumbox @bjuncek

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, the thresholds seem reasonable. @vfdev-5 any concerns?

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

OK to me as well, thanks @pmeier

@pmeier pmeier merged commit 6ad8044 into pytorch:main Nov 7, 2022
@pmeier pmeier deleted the cuda-tol branch November 7, 2022 19:13
facebook-github-bot pushed a commit that referenced this pull request Nov 14, 2022
Reviewed By: NicolasHug

Differential Revision: D41265179

fbshipit-source-id: 718bbcb4d333ecff2533f4ec3b9ecd94c03bc0c5
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.

4 participants