You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Lunderberg (via GitHub)" <gi...@apache.org> on 2024/08/28 16:06:02 UTC

[PR] [Relax] Identify tuple unpack/repack in CanonicalizeBindings [tvm]

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

   Prior to this commit, the `CanonicalizeBindings` pass could identify and simplify a value that had been packed into a tuple, then extracted from it.  (e.g. Simplifying `tup = (x,y); z = tup[0]` into `z = x`.)  However, it could not identify a value that had been expanded from a tuple, and then re-bundled.  (e.g. Simplifying `new_tuple = (tup[0], tup[1])` into `new_tuple = tup`.)
   
   This commit updates `CanonicalizeBindings` to identify and remove unnecessary tuple unpacking/repacking.


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

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


Re: [PR] [Relax] Identify tuple unpack/repack in CanonicalizeBindings [tvm]

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


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

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