tqchen commented on PR #17216:
URL: https://github.com/apache/tvm/pull/17216#issuecomment-2259211572

   Just want to note that it is not always possible to do such inference.
   
   ```python
   class IRModule:
       @T.prim_func
       def reshape(A : Buffer((2, 4)), B: Buffer((n, m)):
       
       def main(A: Buffer((2, 4))):
            lv0 = R.call_tir(reshape, [A], R.Tensor((1, 8)))
   ```
   
   For example, the above code is a valid tir call, but needs the output sinfo 
to be explicitly specified. Because we have such cases, and `call_tir` is a 
lower level function, it is safer to always ask for sinfo, but checks its 
consistency with the corresponding prim_func signature if needed


-- 
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: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to