Open Cookiee235 opened 3 months ago
Looks like a bug in the LiftTransformParams
implementation, that it only determines the variables required at runtime based on the contents of VarBinding
, and not from the output of a Function
. Should be fixed in https://github.com/apache/tvm/pull/17232.
@Lunderberg The test case can run correctly now under the given PR (#17232). Thanks for your efforts!
No problem, and thank you for the high-quality bug reports! Running into any of these failure modes in larger use cases can be very difficult to debug. My personal rule of thumb is that every IRModule
should either be caught as ill-formed, or should compile without issue. The errors you've been uncovering show that that clearly isn't the current case, but fixing them helps move toward that ideal.
(With some exceptions for uncatchable issues, such as incorrect arguments used for external functions.)
Actual behavior
Steps to reproduce
cc @Lunderberg @junrushao