Lunderberg commented on issue #17175:
URL: https://github.com/apache/tvm/issues/17175#issuecomment-2259194413
> I'm baffled. Do we need to explicitly call the ``FuseTIR` transform before
compiling any model?
Looking at the specific example, it looks like there are two distinct `lv`
variables in the input. One is produced by `R.tensor_to_shape`, while the
other is produced by `R.call_pure_packed("vm.builtin.tensor_to_shape", ...)`.
When `FuseTIR` is called, it internally performs dead-code elimination to
remove any values that are no longer required after fusion, along with any
no-longer-used PrimFunc implementations. This has the side effect of removing
the call to `R.tensor_to_shape(x)`, as its output is entirely unused.
--
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]