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

   And after poking at it, it looks like there an ambiguity in the relax type 
system.  In most cases, a zero-field `TupleStructInfo` is used to represent a 
void type 
([example](https://github.com/apache/tvm/blob/main/include/tvm/relax/struct_info.h#L457)).
  However, in some cases, a zero-field `TupleStructInfo` is used to represent, 
well, a zero-field tuple 
([example](https://github.com/apache/tvm/blob/main/tests/python/relax/test_tvmscript_parser.py#L1369)).
  Eliding the variable binding for an actual void type make sense, as there are 
no valid uses of a void type.  However, a zero-field tuple can be treated as an 
object, and so removing its variable binding may result in undefined usage.


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