[Relay][Module] Refactor the way we interface between different modules of Relay...
authorJared Roesch <roeschinc@gmail.com>
Thu, 12 Sep 2019 03:39:56 +0000 (22:39 -0500)
committerZhi <5145158+zhiics@users.noreply.github.com>
Thu, 12 Sep 2019 03:39:56 +0000 (20:39 -0700)
commit4e2d707f2d2160a30375267269c4f5da9a810cfa
tree9434b2eb8dc3b2c49dde5ea803491983893ab597
parentc31e77718a3d93648c9538ce53aaf41ac1948722
[Relay][Module] Refactor the way we interface between different modules of Relay. (#3906)

* Module refactor

* Add load module

* Add support for idempotent import

* Tweak load paths

* Move path around

* Expose C++ import functions in Python

* Fix import

* Add doc string

* Fix

* Fix lint

* Fix lint

* Fix test failure

* Add type solver

* Fix lint
12 files changed:
include/tvm/relay/expr.h
include/tvm/relay/module.h
include/tvm/relay/type.h
python/tvm/relay/__init__.py
python/tvm/relay/module.py
python/tvm/relay/prelude.py
python/tvm/relay/std/prelude.rly [moved from python/tvm/relay/prelude.rly with 100% similarity]
src/relay/ir/expr_functor.cc
src/relay/ir/module.cc
src/relay/pass/type_infer.cc
src/relay/pass/type_solver.cc
src/relay/pass/type_solver.h