[Relay][Runtime] Implementation of Relay VM (#2889)
authorJared Roesch <roeschinc@gmail.com>
Thu, 9 May 2019 06:09:15 +0000 (02:09 -0400)
committerGitHub <noreply@github.com>
Thu, 9 May 2019 06:09:15 +0000 (02:09 -0400)
commit4332b0aae3e05ee3bfe2ecf3c0d164ff47ae30bb
treee03a98e79b7a40cea17e6eeff7729f878d26d9bf
parent181dbd8e94222b1dad5da4c3f15b8c63facc3582
[Relay][Runtime] Implementation of Relay VM (#2889)

* Implement the virtual machine

Co-Authored-By: wweic <ipondering.weic@gmail.com>
* Fix rebase build issues

* Reorganize vm.py and fix allocator bug

* Remove compiler

* Remove tests

* Remove backend/vm/vm.cc too

* Fix docs

* Fix doc

* Fix doc

* Add vm docs

* Remove change to dead_code.cc

* Remove Relay logging

* Remove reduce

* Update include/tvm/runtime/vm.h

Co-Authored-By: jroesch <roeschinc@gmail.com>
* Reformat

* Update include/tvm/runtime/vm.h

Co-Authored-By: jroesch <roeschinc@gmail.com>
* Address feedback

* Update include/tvm/runtime/vm.h

Co-Authored-By: jroesch <roeschinc@gmail.com>
* Apply suggestions from code review

Co-Authored-By: jroesch <roeschinc@gmail.com>
* Fix a couple outstanding comments

* Last couple comments

* Update include/tvm/runtime/vm.h

Co-Authored-By: jroesch <roeschinc@gmail.com>
* Address code review feedback

* Fix final comment

* Address comments

* Error reporting and example

* add Const

* Explicitly delete copy assignment operator

* Fix rebase

* Pass 3rd arg to fusion
41 files changed:
CMakeLists.txt
cmake/config.cmake
include/tvm/relay/logging.h [deleted file]
include/tvm/relay/pass.h
include/tvm/runtime/c_runtime_api.h
include/tvm/runtime/ndarray.h
include/tvm/runtime/vm.h [new file with mode: 0644]
python/tvm/relay/backend/_vm.py [new file with mode: 0644]
python/tvm/relay/backend/interpreter.py
python/tvm/relay/backend/vm.py [new file with mode: 0644]
python/tvm/relay/build_module.py
python/tvm/relay/expr.py
python/tvm/relay/ir_pass.py
python/tvm/relay/module.py
src/arithmetic/canonical_simplify.cc
src/relay/backend/build_module.cc
src/relay/backend/compile_engine.h
src/relay/backend/interpreter.cc
src/relay/ir/error.cc
src/relay/ir/expr.cc
src/relay/ir/hash.cc
src/relay/ir/module.cc
src/relay/ir/type_functor.cc
src/relay/ir/type_functor.h
src/relay/op/type_relations.cc
src/relay/pass/eta_expand.cc [new file with mode: 0644]
src/relay/pass/fold_constant.cc
src/relay/pass/fuse_ops.cc
src/relay/pass/kind_check.cc
src/relay/pass/partial_eval.cc
src/relay/pass/to_a_normal_form.cc
src/relay/pass/type_infer.cc
src/runtime/vm/memory_manager.cc
src/runtime/vm/memory_manager.h
src/runtime/vm/naive_allocator.h
src/runtime/vm/object.cc
src/runtime/vm/vm.cc [new file with mode: 0644]
tests/python/relay/test_pass_dead_code_elimination.py
tests/python/relay/test_pass_eta_expand.py [new file with mode: 0644]
tests/python/relay/test_pass_partial_eval.py
topi/include/topi/transform.h