You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "jikechao (via GitHub)" <gi...@apache.org> on 2025/05/12 08:01:03 UTC

[PR] Fix sqrt/rsqrt Compatibility with Integer Data Types [tvm]

jikechao opened a new pull request, #17953:
URL: https://github.com/apache/tvm/pull/17953

   Fix https://github.com/apache/tvm/issues/17952.
   
   Since TVM's LLVM backend does not support sqrt for integer types (e.g., int16), we explicitly cast the input to float32 at the TOPI operator level before computing sqrt. This ensures compatibility with hardware-accelerated floating-point sqrt instructions.
   
   
   
   
   cc @Hzfengsy @tqchen 


-- 
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


Re: [PR] Fix sqrt/rsqrt Compatibility with Integer Data Types [tvm]

Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen merged PR #17953:
URL: https://github.com/apache/tvm/pull/17953


-- 
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