[Relay][VM] Port VM, VM compiler, and Object into python (#3391)
authorHaichen Shen <shenhaichen@gmail.com>
Tue, 16 Jul 2019 04:02:12 +0000 (21:02 -0700)
committerJared Roesch <roeschinc@gmail.com>
Tue, 16 Jul 2019 04:02:12 +0000 (21:02 -0700)
commitb6dc78260f113c42ec5773b60db538ee97ac164e
treef9c8a7c9946d26c0f8579ae86c39815a77a0a913
parentafd4b3e4450984358e9d79a7e8e578483cb7b017
[Relay][VM] Port VM, VM compiler, and Object into python (#3391)

* tmp

* Port vm and object to python

* clean up

* update vm build module

* update

* x

* tweak

* cleanup

* update

* fix rebase

* Rename to VMCompiler

* fix
26 files changed:
include/tvm/runtime/c_runtime_api.h
include/tvm/runtime/object.h
include/tvm/runtime/packed_func.h
include/tvm/runtime/vm.h
python/tvm/_ffi/_ctypes/function.py
python/tvm/_ffi/_ctypes/vmobj.py [new file with mode: 0644]
python/tvm/_ffi/_cython/base.pxi
python/tvm/_ffi/_cython/core.pyx
python/tvm/_ffi/_cython/function.pxi
python/tvm/_ffi/_cython/vmobj.pxi [new file with mode: 0644]
python/tvm/_ffi/function.py
python/tvm/_ffi/runtime_ctypes.py
python/tvm/_ffi/vmobj.py [new file with mode: 0644]
python/tvm/relay/__init__.py
python/tvm/relay/backend/_vmobj.py [new file with mode: 0644]
python/tvm/relay/backend/vm.py
python/tvm/relay/backend/vmobj.py [new file with mode: 0644]
python/tvm/relay/transform.py
src/relay/backend/build_module.cc
src/relay/backend/vm/compiler.cc
src/relay/backend/vm/vm.cc [deleted file]
src/runtime/vm/object.cc
src/runtime/vm/pooled_allocator.h
src/runtime/vm/vm.cc
tests/python/relay/benchmarking/benchmark_vm.py
tests/python/relay/test_vm.py