-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix roi_pool op bug #10700
fix roi_pool op bug #10700
Conversation
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.
1.CPU的预测值和GPU的预测值有diff
2.roi_pooling之前特征最大值和之后特征最大值不一致
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,it's running ok.
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.
GPUROIPoolBackward function is also need fix.
@dyning DONE |
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.
Great!
The bug is due to CUDA precision problem.
eg: it will store
i = float(1) / float(3)
as0.333334
, so afterceil(3 * i)
, the result is different from cpu(2 vs 1)fix #10627