Lunderberg opened a new pull request, #14400: URL: https://github.com/apache/tvm/pull/14400
The member variables `device_type_` and `device_id_` are tracked during `LowerTVMBuiltin`, are initially undefined, and are checked before use. This is the usage pattern expected for `Optional<T>`, but these variables previously had the type `PrimExpr`. This commit updates these to `Optional<PrimExpr>`, and uses the helper function `GetDeviceMethodName` to add more detail to the error messages when they are undefined. -- 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-unsubscr...@tvm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org