Lunderberg opened a new pull request, #16641: URL: https://github.com/apache/tvm/pull/16641
Prior to this commit, TVMScript required all relax expressions to be part of an explicit assignment or return statement. While this matches the structure of the C++ IR types, this can be unexpected for functions that have no return value. For example, needing to assign the result of `R.print(...)` to a variable. This commit updates the TVMScript parser/printer to allow relax expressions to be used as statements, if they have a void return type. This allows use of `R.print(...)` and `R.assert_op(...)` to be called without assigning the result to an unused variable. -- 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]
