-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Relay][Topi] Add max mode to ROI align #7440
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.
I think there's a little code duplication that could be removed but otherwise this LGTM. Thanks Lily!
@junrushao1994 in case you want to take a look at adding inf, and ninf to hybridscript! |
thanks @electriclilies! That part looks pretty good to me |
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.
LGTM
* ROI align with max on cpu passes * onnx test file was not running gpu testsgit status! * all passing * fix lint * lint again * lint * lint * typo * remove import * fix import * add inf, -inf to hybridscript and respond to comments * shorten code * make atol lower
* ROI align with max on cpu passes * onnx test file was not running gpu testsgit status! * all passing * fix lint * lint again * lint * lint * typo * remove import * fix import * add inf, -inf to hybridscript and respond to comments * shorten code * make atol lower
This PR adds max mode to ROI align.
The ONNX version of max mode in ROI align is incorrect (see microsoft/onnxruntime#6146), so I'm not testing ROI align with max mode against onnx's ROI align with max mode, even though I added max mode to the onnx importer.
I also add inf and -inf to hybridscript in this PR.
@jwfromm @mbrookhart @CircleSpin please take a look!