[Relay][VM] Fix constant folding issue in VM compiler (#4077)
authorWei Chen <ipondering.weic@gmail.com>
Thu, 10 Oct 2019 00:47:04 +0000 (17:47 -0700)
committerZhi <5145158+zhiics@users.noreply.github.com>
Thu, 10 Oct 2019 00:47:04 +0000 (17:47 -0700)
commitfc2713e5a501441875470e2976dd83d82eaadcbe
tree2f0432fc5a2bb2f4d51bf11290b9837b33316c4f
parent4d875d1fa0f179984f21d6186ba25ec4ab8c925f
[Relay][VM] Fix constant folding issue in VM compiler (#4077)

* [Relay][VM] Fix constant folding issue in VM compiler

1. allow pass params when compile a module
2. enhance profiler robustness

* remove dead code

* fix lint

* add get_params

* fix test

* don't pass params back

* remove get_params

* docs

* move compile function to api

* compile clashes with builtin name

* fix compilation error

* remove dead code
python/tvm/relay/backend/profiler_vm.py
python/tvm/relay/backend/vm.py
src/relay/backend/vm/compiler.cc
src/relay/backend/vm/compiler.h
src/runtime/vm/profiler/vm.cc
tests/python/relay/test_vm.py
tests/python/relay/test_vm_serialization.py
tests/python/unittest/test_runtime_vm_profiler.py