[Relay][VM] Add ReshapeTensor instruction in the VM to replace the reshape op (#6089)
authorHaichen Shen <shenhaichen@gmail.com>
Tue, 21 Jul 2020 17:10:16 +0000 (10:10 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2020 17:10:16 +0000 (10:10 -0700)
commit526b5a519225ec09868e31211a917f7c51d40e52
treed7cd44849d0ac0dea198fe012f4b5fae083506da
parentd8c9bb18907ed57916d94325f47f1c3dcfd34784
[Relay][VM] Add ReshapeTensor instruction in the VM to replace the reshape op (#6089)

* [VM] Add reshape tensor instruction

* update

* lint

* fix

* fix
15 files changed:
include/tvm/relay/attrs/vm.h
include/tvm/runtime/vm.h
python/tvm/relay/backend/compile_engine.py
python/tvm/relay/backend/vm.py
python/tvm/relay/build_module.py
python/tvm/relay/op/vm/vm.py
python/tvm/relay/transform/memory_alloc.py
python/tvm/relay/ty.py
src/relay/analysis/util.cc
src/relay/backend/vm/compiler.cc
src/relay/op/tensor/transform.cc
src/relay/op/vm/vm.cc
src/runtime/vm/executable.cc
src/runtime/vm/vm.cc
tests/python/relay/test_vm.py