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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to