[Relay][Pass] Only allow Module -> Module for opts managed by pass infra (#3430)
authorZhi <5145158+zhiics@users.noreply.github.com>
Mon, 1 Jul 2019 19:50:39 +0000 (12:50 -0700)
committerJared Roesch <roeschinc@gmail.com>
Mon, 1 Jul 2019 19:50:39 +0000 (12:50 -0700)
commitf2a6851ad3e6e8499c57838db598375c0d043422
treef9c284cf91c8eba06c25948f7cadce338307ea83
parent6c81d784dc9459d684604fcf4190fda4cb956c1c
[Relay][Pass] Only allow Module -> Module for opts managed by pass infra (#3430)

* [Relay][Pass] Only allow Module -> Module for opts managed by pass infra

* revert gradient pass
13 files changed:
include/tvm/relay/pass.h
include/tvm/relay/transform.h
python/tvm/relay/ir_pass.py
python/tvm/relay/transform.py
src/relay/pass/dead_code.cc
src/relay/pass/partial_eval.cc
src/relay/pass/pass_manager.cc
src/relay/pass/to_a_normal_form.cc
src/relay/pass/to_graph_normal_form.cc
tests/python/relay/test_pass_dead_code_elimination.py
tests/python/relay/test_pass_partial_eval.py
tests/python/relay/test_pass_to_a_normal_form.py
tests/python/relay/test_pass_to_graph_normal_form.py