You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2023/01/04 02:28:13 UTC
[GitHub] [tvm] lightzhan-intellif opened a new pull request, #13692: [BugFix][TVMScript] Fix the roundtripability of pow intrinsic.
lightzhan-intellif opened a new pull request, #13692:
URL: https://github.com/apache/tvm/pull/13692
Hi,
This is a bug fix discussed [here](https://github.com/apache/tvm/issues/13674). Any further suggestion is welcome.
cc @junrushao
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] lightzhan-intellif commented on a diff in pull request #13692: [BugFix][TVMScript] Fix the roundtripability of intrinsic pow
Posted by GitBox <gi...@apache.org>.
lightzhan-intellif commented on code in PR #13692:
URL: https://github.com/apache/tvm/pull/13692#discussion_r1062035156
##########
python/tvm/script/ir_builder/tir/ir.py:
##########
@@ -1532,7 +1532,7 @@ def wrapped(*args, **kwargs):
nearbyint = _op_wrapper(_tir_op.nearbyint)
nextafter = _op_wrapper(_tir_op.nextafter)
popcount = _op_wrapper(_tir_op.popcount)
-power = _op_wrapper(_tir_op.power)
+pow = _op_wrapper(_tir_op.power) # pylint: disable=redefined-builtin
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] lightzhan-intellif commented on pull request #13692: [BugFix][TVMScript] Fix the roundtripability of intrinsic pow
Posted by GitBox <gi...@apache.org>.
lightzhan-intellif commented on PR #13692:
URL: https://github.com/apache/tvm/pull/13692#issuecomment-1370420391
@tvm-bot rerun
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] lightzhan-intellif commented on a diff in pull request #13692: [BugFix][TVMScript] Fix the roundtripability of intrinsic pow
Posted by GitBox <gi...@apache.org>.
lightzhan-intellif commented on code in PR #13692:
URL: https://github.com/apache/tvm/pull/13692#discussion_r1061176191
##########
tests/python/unittest/test_tvmscript_roundtrip.py:
##########
@@ -3622,5 +3622,14 @@ def test_return_none_no_trailing_type():
assert "-> None" not in script
+def test_pow_roundtripable():
Review Comment:
Okay.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] lightzhan-intellif commented on pull request #13692: [BugFix][TVMScript] Fix the roundtripability of intrinsic pow
Posted by GitBox <gi...@apache.org>.
lightzhan-intellif commented on PR #13692:
URL: https://github.com/apache/tvm/pull/13692#issuecomment-1370546578
Do you mean that users can use both `tir.pow` and `tir.power`? I think it looks like a little bit confusing and redundant. How about we do not make any change to `tir.power`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] Hzfengsy merged pull request #13692: [BugFix][TVMScript] Fix the roundtripability of intrinsic pow
Posted by GitBox <gi...@apache.org>.
Hzfengsy merged PR #13692:
URL: https://github.com/apache/tvm/pull/13692
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] Hzfengsy commented on a diff in pull request #13692: [BugFix][TVMScript] Fix the roundtripability of intrinsic pow
Posted by GitBox <gi...@apache.org>.
Hzfengsy commented on code in PR #13692:
URL: https://github.com/apache/tvm/pull/13692#discussion_r1061119975
##########
tests/python/unittest/test_tvmscript_roundtrip.py:
##########
@@ -3622,5 +3622,14 @@ def test_return_none_no_trailing_type():
assert "-> None" not in script
+def test_pow_roundtripable():
Review Comment:
Could you please use the `ir_generator` to make tests consistent in this file?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] tvm-bot commented on pull request #13692: [BugFix][TVMScript] Fix the roundtripability of pow intrinsic.
Posted by GitBox <gi...@apache.org>.
tvm-bot commented on PR #13692:
URL: https://github.com/apache/tvm/pull/13692#issuecomment-1370418879
<!---bot-comment-->
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from [Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers) by @-ing them in a comment.
<!--bot-comment-ccs-start-->
* No users to tag found in teams: `bugfix`, `tvmscript` <sub>See [#10317](https://github.com/apache/tvm/issues/10317) for details</sub><!--bot-comment-ccs-end-->
<sub>Generated by [tvm-bot](https://github.com/apache/tvm/blob/main/ci/README.md#github-actions)</sub>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] junrushao commented on pull request #13692: [BugFix][TVMScript] Fix the roundtripability of intrinsic pow
Posted by GitBox <gi...@apache.org>.
junrushao commented on PR #13692:
URL: https://github.com/apache/tvm/pull/13692#issuecomment-1370531030
BTW, there are some existing logics that depend on the python API `tir.power`, so please keep a copy as it is for backward compatibility
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] junrushao commented on a diff in pull request #13692: [BugFix][TVMScript] Fix the roundtripability of intrinsic pow
Posted by GitBox <gi...@apache.org>.
junrushao commented on code in PR #13692:
URL: https://github.com/apache/tvm/pull/13692#discussion_r1061812640
##########
python/tvm/script/ir_builder/tir/ir.py:
##########
@@ -1532,7 +1532,7 @@ def wrapped(*args, **kwargs):
nearbyint = _op_wrapper(_tir_op.nearbyint)
nextafter = _op_wrapper(_tir_op.nextafter)
popcount = _op_wrapper(_tir_op.popcount)
-power = _op_wrapper(_tir_op.power)
+pow = _op_wrapper(_tir_op.power) # pylint: disable=redefined-builtin
Review Comment:
I was thinking if we could add a `pow` method to `tvm/tir/op.py` so that it could be consistent
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org