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

   ## Summary
   
   Reject non-float inputs for `topi.acos` and `topi.asin` at the TOPI layer.
   
   ## Changes
   
   - add a floating-point dtype check to `topi.acos`
   - add a floating-point dtype check to `topi.asin`
   - add TE tests covering integer-input rejection
   - add a regression test to confirm the valid `float32` path still builds 
with `target="llvm"`
   
   ## Validation
   
   - `tests/python/te/test_te_create_primfunc.py -k 'topi_float_unary'`
   - local repro now fails early with a clear `TypeError` for 
`topi.acos(int16)` and `topi.asin(int16)`
   - local regression check confirms the valid `float32` path still compiles 
with LLVM
   
   ## Issue
   
   Fixes #18729


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

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to