[RUNTIME] Refactor object python FFI to new protocol. (#4128)
* [RUNTIME] Refactor object python FFI to new protocol. This is a pre-req to bring the Node system under object protocol. Most of the code reflects the current code in the Node system. - Use new instead of init so subclass can define their own constructors - Allow register via name, besides type idnex - Introduce necessary runtime C API functions - Refactored Tensor and Datatype to directly use constructor. * address review comments
Showing
python/tvm/_ffi/object.py
0 → 100644
python/tvm/_ffi/vmobj.py
deleted
100644 → 0
tests/python/relay/test_vm_object.py
0 → 100644
Please
register
or
sign in
to comment