Skip to content

[Relay][Convert Layout] Enable layout transformation for image.resize op#8205

Merged
masahi merged 4 commits into
apache:mainfrom
jtuyls:resize-op-add-convert-layout
Jun 18, 2021
Merged

[Relay][Convert Layout] Enable layout transformation for image.resize op#8205
masahi merged 4 commits into
apache:mainfrom
jtuyls:resize-op-add-convert-layout

Conversation

@jtuyls

@jtuyls jtuyls commented Jun 7, 2021

Copy link
Copy Markdown
Contributor

This PR adds layout transformation support for the image.resize operation. This is useful for custom codegens as it allows creating larger partitions with the same layout in segmentation models (e.g. deeplabv3). In particular, this allows the Vitis AI codegen to offload a larger part of the model to the DPU accelerator if applicable.

@anijain2305 @yzhliu @trevor-m Could you please help with reviewing this PR?

@comaniac comaniac left a comment

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.

Otherwise LGTM

Comment thread python/tvm/relay/op/image/_image.py Outdated
Comment thread python/tvm/relay/op/image/_image.py Outdated

@comaniac comaniac left a comment

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.

LGTM

@trevor-m trevor-m left a comment

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.

LGTM

@anijain2305

Copy link
Copy Markdown
Contributor

Nice, this should help TensorRT as well.

@comaniac

Copy link
Copy Markdown
Contributor

@jtuyls please fix the CI.

@masahi masahi merged commit 0f4c065 into apache:main Jun 18, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
… op (apache#8205)

* Enable layout transformation for image.resize op

* Change str map function to str and index retrieval

* Fix for pytorch frontend segmentation models test
zxy844288792 pushed a commit to zxy844288792/tvm that referenced this pull request Mar 4, 2022
… op (apache#8205)

* Enable layout transformation for image.resize op

* Change str map function to str and index retrieval

* Fix for pytorch frontend segmentation models test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants