Skip to content

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

Merged
masahi merged 6 commits intoapache:mainfrom
mbrookhart:tf_crop_and_resize
Nov 16, 2021
Merged

[ONNX][Relay] Support "tf_crop_and_resize" in relay Resize op.#9475
masahi merged 6 commits intoapache:mainfrom
mbrookhart:tf_crop_and_resize

Conversation

@mbrookhart
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
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.

Comment thread python/tvm/relay/frontend/onnx.py Outdated
Comment thread tests/python/frontend/onnx/test_forward.py Outdated
* \param array Input NDArray
* \return Converted Array.
*/
static inline Array<FloatImm> ToFloatVector(const runtime::NDArray& array) {
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread python/tvm/relay/op/image/image.py Outdated
Comment thread src/relay/op/image/resize.cc Outdated
@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