vinx13 commented on PR #70:
URL: https://github.com/apache/tvm-rfcs/pull/70#issuecomment-1133153361

   @wrongtest I've thought about the option A3 vs A4. From the parsing / 
translation from TVM script to TIR, it is acceptable to have `T.allocate` 
translated to `Allocate + DeclBuffer` two nodes. But it will be tricky for 
`TVMScriptPrinter`. We will need to find both `Allocate` and `DeclBuffer` nodes 
and then print `T.allocate`, and these two nodes do not have to be parent/child 
of each other. I'm not sure if this behavior, which breaks 1-to-1 mapping 
between TVM script and TIR, is desirable. Alternatively, we can add an option 
to `T.allocate`, such as `def allocate(..., return_buffer: bool)`. What do you 
think?


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