-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Relax cudnn conditions for channels-last convolutions #38904
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
Conversation
💊 CI failures summary and remediationsAs of commit 870b169 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 34 times. |
test/test_nn.py
Outdated
| self.assertEqual(out, ref_out, rtol=0.001, atol=0.001) | ||
| self.assertEqual(conv.weight.grad, ref_conv.weight.grad, rtol=0.001, atol=0.001) | ||
| self.assertEqual(conv.bias.grad, ref_conv.bias.grad, rtol=0.001, atol=0.001) | ||
| self.assertEqual(input.grad, ref_input.grad, rtol=0.001, atol=0.001) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the dtype_precisions from here for the check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Will do!
|
@ngimel @VitalyFedyunin This should be ready for review. |
facebook-github-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VitalyFedyunin has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@VitalyFedyunin merged this pull request in 17d3f74. |
Follow up of #38044. Thanks @ptrblck, @mcarilli for the help on discussing the changes!
Could fix #37725 by skipping the depthwise-workload check introduced in #22302. This PR also relaxed dilated convolution for channels-last.
The testing script is https://gist.github.com/xwang233/82a707f69bb710cb612349280a2c5f41. About 387k conv arguments were tested and no cudnn exception was thrown.
cc @ngimel @VitalyFedyunin @ptrblck @mcarilli