Skip to content

Conversation

@AndrewZhaoLuo
Copy link
Contributor

This updates the onnx spec for pow up to the latest opset. This includes mixing types and having integer pow().

We handle all of this by casting to float since codegen does not support an intrinsic pow operator. It might be worth it to come up with a good default implementation in relay for integer pow but I do not know if this is going to be faster than simply casting.

@masahi masahi merged commit 9a47fc0 into apache:main Sep 8, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
* update pow

* update pow

* remove duplicate

Co-authored-by: Andrew Zhao Luo <andrewzhaoluo@system76-pc.localdomain>
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
* update pow

* update pow

* remove duplicate

Co-authored-by: Andrew Zhao Luo <andrewzhaoluo@system76-pc.localdomain>
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.

2 participants