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

   Previously, a `DeclBuffer` object in which `decl_buffer->buffer->data` had 
not been defined would be printed without the `data` argument. This was the 
same representation as the `Allocate`/`DeclBuffer` pattern (e.g. `buf = 
T.decl_buffer(shape,dtype)`), and so the `Allocate` node would be inserted when 
parsing.
   
   This commit updates the printing of buffers to be aware of which variables 
are implicitly declared in the process of declaring a buffer.  (e.g. A buffer 
that occurs in `BlockNode::alloc_buffers` defines both the buffer and the data 
pointer, while a `DeclBuffer` only defines the buffer.)  This is used to 
produce a different representation for the undefined data pointer, removing the 
ambiguity with the `Allocate`/`DeclBuffer` sugar.
   
   Because this change only affects malformed TIR in which a `DeclBuffer` node 
references an undefined data pointer, it is intended primarily for debugging 
purposes.


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