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][Convert Layout] Enable layout transformation for image.resize op #8205

Merged
merged 4 commits into from
Jun 18, 2021

Conversation

jtuyls
Copy link
Contributor

@jtuyls jtuyls commented Jun 7, 2021

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?

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

python/tvm/relay/op/image/_image.py Outdated Show resolved Hide resolved
python/tvm/relay/op/image/_image.py Outdated Show resolved Hide resolved
Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@trevor-m trevor-m left a comment

Choose a reason for hiding this comment

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

LGTM

@anijain2305
Copy link
Contributor

Nice, this should help TensorRT as well.

@comaniac
Copy link
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