AndrewZhaoLuo commented on pull request #9023:
URL: https://github.com/apache/tvm/pull/9023#issuecomment-921111599


   > I think I sort of understand the usecase here: some negative indices are 
not known to be negative until in runtime. This forces us to defer the 
conversion from compile-time to runtime.
   > 
   > On the other hand, I am not 100% sure if it is the best fix by adding a 
new argument in the public interface, given that in most cases indices are just 
positive and well in-range.
   > 
   > I was thinking, if the issue comes from an importer, is it possible to add 
an operator like `normalize_indices`, mark it as `injective` which makes it 
fusible, so that there isn't architectural change in TE? What do you guys think?
   
   We do have a `normalize_indices` on the relay level. I think a problem 
though is the format might be slightly different so you would need a few 
different implementations. For example take tf's gather vs gather_nd. 


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