viiccwen commented on PR #19975: URL: https://github.com/apache/tvm/pull/19975#issuecomment-4932978140
In the current Relax Python API, `relax.prim_value` does not produce a separate `relax.PrimValue` wrapper. It returns a TIR PrimExpr directly for both PrimExpr inputs and Python scalar inputs, so `tvm.ir.is_prim_expr(...)` already covers these values. I verified this locally, and there does not appear to be a `relax.PrimValue` Python class to unwrap. Thx Gemini. <img width="232" height="186" alt="image" src="https://github.com/user-attachments/assets/4a358a68-2a9c-4950-8529-d6df679c5ad3" /> -- 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]
