guan404ming opened a new pull request, #19957: URL: https://github.com/apache/tvm/pull/19957
## Why Fixes #19925. `relax.shape_to_tensor` had no legalization, so it always lowered to the host packed func `relax.run.shape_to_tensor`, producing a CPU tensor regardless of the target device. ## How - Register a legalization that emits the shape values as a `call_tir` TE kernel, passing symbolic dims via `tir_vars`. - Fall back to the packed func when the shape values are unknown (`ShapeStructInfo` without values). -- 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]
