-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Fix for flaky test_operator_gpu.test_spatial_transformer_with_type #12557
Conversation
…tency between CPU & GPU code
LGTM |
Thanks for contributing a fix Hao! |
Please provide more description in the PR to facilitate reviewers. Why is this test case flaky and what did you do to fix. |
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.
Ready to merge pending description update
@apeforest Please take a look at the |
IMO, |
@apeforest I think at least "lack of description" should not be a blocker for merging the PR as it's not part of the standards for PRs to be accepted. Plus, a competent reviewer would be able to parse the code changes together with all info provided in all sections of the description of the PR. One-sentence description added in |
@haojin2 "a competent reviewer would be able to parse the code changes together with all info provided in all sections of the description of the PR" could be interpreted like gatekeeping. People will have a hard time moving from beginners to competent reviewers if each PR has only the minimum amount of information required by competent reviewers to understand them. This is more a general comment than specific to this one PR, I think we should strive to have descriptions and explanations that can allow newbies and mxnet amateurs to understand more of the gist of the changes that are contributed to the repo. This will help to lower the barrier to entry and make the community more inclusive. Each PR is an opportunity to educate and inform the community of how MXNet is running under the hood. Feel free to put more than less in your descriptions, competent reviewers will ignore the pieces of information they already know, and everybody else will applaud you for that 👍 edit: |
@ThomasDelteil IMHO, education does not equal to spoon-feeding, and we should still encourage balancing the workload we put on contributors and the easiness to understand the code for new members, plus, I would claim that one should be competent enough to understand the code to give constructive code reviews, don't you think so? Note that I'm not saying that one cannot ask questions on PRs. Asking questions is actually what I would encourage community members doing on my PRs instead of instructing me to do something on my PR (which is not a good practice toward a more friendly and inclusive community). |
@ThomasDelteil |
Thanks @haojin2 for your answer. I wonder if we could leverage onnx to check whether our operator implementations are consistent with PyTorch / TF / Caffe2 etc. |
…tency between CPU & GPU code (apache#12557)
Description
Fix for #11839. Consistency check fails between in-house CPU & GPU impl due to nuances in codes. Fixed a missing calculation step in GPU impl without CUDNN
Checklist
Essentials
Changes
cudnn_off
parameter to SpatialTransformerComments
New test passed more than 10000 times