[Relay][VM] Allow to config allocator type and refactor vm code structure (#6105)
authorHaichen Shen <shenhaichen@gmail.com>
Fri, 24 Jul 2020 22:49:45 +0000 (15:49 -0700)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2020 22:49:45 +0000 (15:49 -0700)
commit922e0a05c8cc8fce7964d3f9907fde6981c5f72d
tree1822db02cbaf920b38c456a7e8c04a3a07af0871
parent4a1089d4ab2a7aed3770ce932c4528673c7e0291
[Relay][VM] Allow to config allocator type and refactor vm code structure (#6105)

* [Relay][VM] Allow to config allocator type and refactor vm code structure

* fix doc

* fix

* update

* trigger ci

* trigger ci

* trigger ci

* trigger ci

* fix doc warning
37 files changed:
docs/dev/virtual_machine.rst
include/tvm/relay/interpreter.h
include/tvm/runtime/container.h
include/tvm/runtime/vm.h [deleted file]
include/tvm/runtime/vm/bytecode.h [new file with mode: 0644]
include/tvm/runtime/vm/executable.h [new file with mode: 0644]
include/tvm/runtime/vm/memory_manager.h [moved from src/runtime/vm/memory_manager.h with 82% similarity]
include/tvm/runtime/vm/vm.h [new file with mode: 0644]
python/tvm/_ffi/runtime_ctypes.py
python/tvm/relay/backend/vm.py
python/tvm/runtime/profiler_vm.py
python/tvm/runtime/vm.py
src/relay/backend/build_module.cc
src/relay/backend/vm/compiler.cc
src/relay/backend/vm/compiler.h
src/relay/backend/vm/inline_primitives.cc
src/relay/backend/vm/lambda_lift.cc
src/relay/backend/vm/removed_unused_funcs.cc
src/runtime/container.cc
src/runtime/vm/bytecode.cc [new file with mode: 0644]
src/runtime/vm/executable.cc
src/runtime/vm/memory_manager.cc
src/runtime/vm/naive_allocator.h
src/runtime/vm/pooled_allocator.h
src/runtime/vm/profiler/vm.cc
src/runtime/vm/profiler/vm.h
src/runtime/vm/serialize_util.h
src/runtime/vm/vm.cc
tests/python/frontend/tensorflow/test_forward.py
tests/python/relay/benchmarking/benchmark_vm.py
tests/python/relay/test_external_codegen.py
tests/python/relay/test_json_runtime.py
tests/python/relay/test_pass_annotate_target.py
tests/python/relay/test_pass_partition_graph.py
tests/python/relay/test_vm.py
tests/python/relay/test_vm_serialization.py
tests/python/unittest/test_runtime_vm_profiler.py