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 2020/02/09 18:56:13 UTC

[GitHub] [incubator-tvm] dpankratz opened a new pull request #4852: [Bugfix] Fixed crash when caused by reversing bitwise operators

dpankratz opened a new pull request #4852: [Bugfix] Fixed crash when caused by reversing bitwise operators
URL: https://github.com/apache/incubator-tvm/pull/4852
 
 
   I ran into a bug when using the bitwise operators bitwise_xor, bitwise_and, and bitwise_or.
   
   The following code results in a Python TypeError:
   ```
   a = tvm.var()
   b = 10 ^ a 
   ```
   For reference this code is accepted:
   ```
   a = tvm.var()
   b = a ^ 10
   ```
   Analogous crashes occur for the case of  `10 | a` and `10 & a`.
   
   This pull requests fixes this crash for the operators bitwise_xor, bitwise_and, and  bitwise_or. It also adds a regression test.
   
   cc @tqchen @inadob

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-tvm] tqchen merged pull request #4852: [Bugfix] Fixed crash caused by reversing bitwise operations

Posted by GitBox <gi...@apache.org>.
tqchen merged pull request #4852: [Bugfix] Fixed crash caused by reversing bitwise operations
URL: https://github.com/apache/incubator-tvm/pull/4852
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-tvm] tqchen commented on issue #4852: [Bugfix] Fixed crash caused by reversing bitwise operations

Posted by GitBox <gi...@apache.org>.
tqchen commented on issue #4852: [Bugfix] Fixed crash caused by reversing bitwise operations
URL: https://github.com/apache/incubator-tvm/pull/4852#issuecomment-584310813
 
 
   Thanks @dpankratz !

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services