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 2023/07/13 13:46:40 UTC

[GitHub] [tvm] Lunderberg commented on pull request #15260: [TIR] Implement TIR macros

Lunderberg commented on PR #15260:
URL: https://github.com/apache/tvm/pull/15260#issuecomment-1634277667

   In Relax, I think this use case could be handled by a function that returns a `relax.Expr`.  Unlike in TIR, Relax has an additional normalization step that flattens out any `relax::SeqExpr`.  So, if you had thje function `something()` return a `relax::SeqExpr`, then call it with `var3 = something()`, I think that would result in the behavior you want.
   
   For multiple return values, I can't remember if Relax's normalizer would remove trivial Tuple bindings, where the function return value is a tuple which gets immediately unpacked, but that would be a reasonable extension to add to it.


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