tqchen opened a new pull request #5271: [RUNTIME] Introduce RValue 
reference(move) support to TypedPackedFunc
URL: https://github.com/apache/incubator-tvm/pull/5271
 
 
   This PR introduces RValue reference support the PackedFunc calling 
convention to address the above issue. Specifically, when an argument is a 
r-value reference, we will use a assign a different type 
code(`kObjectRValueRefArg`), and pass `Object**`  (the address to the Object 
pointer) instead through the values array. The callee can choose to move out 
this Object pointer and set the original Object pointer from the caller side to 
be nullptr.
   
   We also add move support to the python side. This enhancement will enable 
copy on write optimizations through out the TVM stack.
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to