Skip to content

Conversation

@jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Aug 6, 2019

This PR adds two new operators that appear in many tensorflow graphs: mirrorpad and spacetodepth. SpaceToDepth can be implemented using TVM intrinsics and so is easily added to the relay tensorflow frontend. MirrorPadding (which includes reflect and symmetric padding around edges) is a little more involved and required adding a new relay operation and topi schedule. Both new operations have new tests against their tensorflow equivalents.

Copy link
Contributor

@tmoreau89 tmoreau89 left a comment

Choose a reason for hiding this comment

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

LGTM

@jwfromm
Copy link
Contributor Author

jwfromm commented Aug 12, 2019

Do we need more reviewers or can we merge this bad boy?

@tmoreau89
Copy link
Contributor

@jroesch can you also review the PR?

@tmoreau89 tmoreau89 merged commit 8bd9d4d into apache:master Aug 13, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Aug 16, 2019
* Added relay and topi mirror_pad operator.

* Added mirror_padding to tensorflow frontend.

* Added mirrorpad testing in tensorflow frontent.

* Added space_to_depth in tf frontend.

* Added tests for spacetodepth.

* spacetodepth bug fix.

* Lint fix

* Added mirror pad python attrs.

* Pad code formatting.

* Syntax improvement

* Hopefully last lint fix
anijain2305 pushed a commit to anijain2305/tvm that referenced this pull request Aug 22, 2019
* Added relay and topi mirror_pad operator.

* Added mirror_padding to tensorflow frontend.

* Added mirrorpad testing in tensorflow frontent.

* Added space_to_depth in tf frontend.

* Added tests for spacetodepth.

* spacetodepth bug fix.

* Lint fix

* Added mirror pad python attrs.

* Pad code formatting.

* Syntax improvement

* Hopefully last lint fix
wweic pushed a commit to neo-ai/tvm that referenced this pull request Sep 6, 2019
* Added relay and topi mirror_pad operator.

* Added mirror_padding to tensorflow frontend.

* Added mirrorpad testing in tensorflow frontent.

* Added space_to_depth in tf frontend.

* Added tests for spacetodepth.

* spacetodepth bug fix.

* Lint fix

* Added mirror pad python attrs.

* Pad code formatting.

* Syntax improvement

* Hopefully last lint fix
@jwfromm jwfromm deleted the tf_ops branch April 12, 2023 15:57
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.

3 participants