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

   The Relax ops `relax.isnan`, `relax.isinf`, and `relax.isfinite` are 
registered in the op registry and emit valid IR, but lack FLegalize entries so 
LegalizeOps() leaves them unlowered and relax.build() crashes at codegen with:
   
       InternalError: CodeGenVM cannot handle this intrinsic now:
       Op(relax.isnan)
   
   Same crash on `isinf` and `isfinite`, on both LLVM and CUDA targets.
   
   The TOPI implementations already exist (python/tvm/topi/math.py). The fix is 
three register_legalize calls following the _call_topi_without_attr pattern 
used by the other unary ops in the same file.
   
   Fixes #19452.


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