Lunderberg opened a new pull request, #15579:
URL: https://github.com/apache/tvm/pull/15579

   When debugging IRModule transformations, it can be useful to know the exact 
C++ address of an object.  For example, to determine whether an undefined TIR 
variable was caused by erroneous insertion of a new variable, or from failing 
to remove a previous variable.  While TVMScript does de-duplicate all names 
within a single print statement, there isn't a convenient way to identify which 
variable in TVMScript corresponds to a specific variable in C++ logging 
statements.
   
   This commit adds `show_object_address` to the `PrinterConfig`.  If false 
(the default), no change is made to the TVMScript variable names.  If true, the 
address of the C++ object is appended to the variable name.  For example, 
printing a `tir.Var('my_name','int64')` as `"my_name_0x1234abcd"`.


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