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:
[email protected]


With regards,
Apache Git Services

Reply via email to