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

[Relay][Topi] Add max mode to ROI align #7440

Merged
merged 13 commits into from
Feb 17, 2021
Merged

Conversation

electriclilies
Copy link
Contributor

@electriclilies electriclilies commented Feb 10, 2021

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!

Copy link
Contributor

@jwfromm jwfromm left a 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!

python/tvm/topi/testing/roi_align_python.py Show resolved Hide resolved
python/tvm/topi/x86/roi_align.py Show resolved Hide resolved
@electriclilies
Copy link
Contributor Author

@junrushao1994 in case you want to take a look at adding inf, and ninf to hybridscript!

@junrushao
Copy link
Member

thanks @electriclilies! That part looks pretty good to me

Copy link
Contributor

@mbrookhart mbrookhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@masahi masahi merged commit 564aae0 into apache:main Feb 17, 2021
@electriclilies electriclilies deleted the roi_align branch February 17, 2021 00:03
Lokiiiiii pushed a commit to Lokiiiiii/tvm that referenced this pull request Mar 2, 2021
* 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
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2021
* 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
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.

5 participants