You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "Gunse11er (via GitHub)" <gi...@apache.org> on 2026/08/25 08:47:24 UTC

[PR] [Fix][Relax][Frontend][ONNX] Support Shape outputs as Gather indices [tvm]

Gunse11er opened a new pull request, #20179:
URL: https://github.com/apache/tvm/pull/20179

   The Relax ONNX frontend preserves Shape outputs as ShapeExpr values. Gather assumed its indices operand always had a tensor type and accessed its dtype, which raised an AttributeError when a Shape output was used as indices.
   
   Materialize ShapeExpr indices as int64 tensors before the existing dtype and negative-index handling. Add an execution test that compares the imported model against ONNX Runtime.
   
   Fixes #20176.


-- 
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: discuss-archive-unsubscribe@tvm.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org


Re: [PR] [Fix][Relax][Frontend][ONNX] Support Shape outputs as Gather indices [tvm]

Posted by "tlopex (via GitHub)" <gi...@apache.org>.
tlopex merged PR #20179:
URL: https://github.com/apache/tvm/pull/20179


-- 
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: discuss-archive-unsubscribe@tvm.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org