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

Disable nondeterministic implementation for max_pool2d_backward #619

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

Stonepia
Copy link
Contributor

@Stonepia Stonepia commented Jul 19, 2024

We disable the nondeterministic implementation of max_pool2d_backward by default, so that to avoid potential accuracy issues.

The background is that we encountered eager two-run-differ problems with alexnet (without enabling deterministic). However, CUDA could run without enabling it. To align with the CUDA's behavior, we decided to always go to the deterministic path in this kernel.

This PR adds a flag XPU_ALLOW_UNDETERMINISTIC. In the future, we may enable this path for performance consideration.

@Stonepia Stonepia requested a review from fengyuan14 July 19, 2024 02:16
@fengyuan14
Copy link
Contributor

Please fix compilation error.

@fengyuan14 fengyuan14 added this pull request to the merge queue Jul 22, 2024
Merged via the queue into main with commit e9516e6 Jul 22, 2024
2 checks passed
@fengyuan14 fengyuan14 deleted the tongsu/dilated_max_pool branch July 22, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants