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

[ONNX][Relay] Support "tf_crop_and_resize" in relay Resize op. #9475

Merged
merged 6 commits into from
Nov 16, 2021

Conversation

mbrookhart
Copy link
Contributor

No description provided.

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.

A few nitpicks, overall is well structured and LGTM.

python/tvm/relay/frontend/onnx.py Outdated Show resolved Hide resolved
tests/python/frontend/onnx/test_forward.py Outdated Show resolved Hide resolved
* \param array Input NDArray
* \return Converted Array.
*/
static inline Array<FloatImm> ToFloatVector(const runtime::NDArray& array) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, why was this needed? I dont see how it interacts with resize.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used it in DynamicToStatic to convert the ROI argument.

python/tvm/relay/op/image/image.py Outdated Show resolved Hide resolved
@masahi masahi merged commit eda12cb into apache:main Nov 16, 2021
@mbrookhart mbrookhart deleted the tf_crop_and_resize branch November 30, 2021 23:11
mehrdadh pushed a commit to mehrdadh/tvm that referenced this pull request Dec 1, 2021
…e#9475)

* add fallback to opset 11

* Support tf_crop_and_resize in resize op

* change api use in the rest of the codebase

really fix the tests

* respond to review comments, improve doc strings

* fix docstring indentation

* remove N anc C from resize roi
mehrdadh pushed a commit to mehrdadh/tvm that referenced this pull request Dec 1, 2021
…e#9475)

* add fallback to opset 11

* Support tf_crop_and_resize in resize op

* change api use in the rest of the codebase

really fix the tests

* respond to review comments, improve doc strings

* fix docstring indentation

* remove N anc C from resize roi
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
…e#9475)

* add fallback to opset 11

* Support tf_crop_and_resize in resize op

* change api use in the rest of the codebase

really fix the tests

* respond to review comments, improve doc strings

* fix docstring indentation

* remove N anc C from resize roi
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
…e#9475)

* add fallback to opset 11

* Support tf_crop_and_resize in resize op

* change api use in the rest of the codebase

really fix the tests

* respond to review comments, improve doc strings

* fix docstring indentation

* remove N anc C from resize roi
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
…e#9475)

* add fallback to opset 11

* Support tf_crop_and_resize in resize op

* change api use in the rest of the codebase

really fix the tests

* respond to review comments, improve doc strings

* fix docstring indentation

* remove N anc C from resize roi
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.

3 participants