Name |
Last commit
|
Last update |
---|---|---|
.. | ||
__init__.py | ||
_ffi_api.py | ||
_ffi_node_api.py | ||
container.py | ||
module.py | ||
ndarray.py | ||
object.py | ||
object_generic.py | ||
packed_func.py | ||
profiler_vm.py | ||
vm.py |
* [RUNTIME] Introduce RValue reference(move) support to TypedPackedFunc 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 an experimental move support to the python side(marked as _move so to indicate the dev nature). This enhancement will enable copy on write optimizations through out the TVM stack. * Address review comments * fix compilation
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
__init__.py | Loading commit data... | |
_ffi_api.py | Loading commit data... | |
_ffi_node_api.py | Loading commit data... | |
container.py | Loading commit data... | |
module.py | Loading commit data... | |
ndarray.py | Loading commit data... | |
object.py | Loading commit data... | |
object_generic.py | Loading commit data... | |
packed_func.py | Loading commit data... | |
profiler_vm.py | Loading commit data... | |
vm.py | Loading commit data... |