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

   Fixes [#20064](https://github.com/apache/tvm/issues/20064).
   
   This updates ONNX `Range` lowering to support runtime scalar bounds, 
following the same strategy used by [Relax TFLite dynamic RANGE 
lowering](https://github.com/apache/tvm/pull/19867). The strategy is to compute 
the output length in graph, lift it to a symbolic dimension, and rebuild the 
range as `arange(0, length) * delta + start`.
   
   The existing constant path is preserved, and symbolic `PrimExpr` bounds 
continue to use `relax.op.arange` directly. Tests are added for constant 
`Range`, parametrized dynamic scalar `Range` inputs, and symbolic `PrimExpr` 
limit.


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