masahi commented on issue #8412:
URL: https://github.com/apache/tvm/issues/8412#issuecomment-943180691


   I think a good way to add N-D input support to `topi.dense` is to do 
`topi.reshape` on the input before doing dense compute, and inside dense 
schedules we do `compute_inline(...)` on the reshape stage. This way, we can 
reuse existing schedules that are hardcoded for 2D input at no performance 
overhead (modulo some indexing math from reshaping). See my PR 
https://github.com/apache/tvm/pull/9207 that does something similar.


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