[Relay] Make check stricter by using Feature. Fixed multiple bugs. (#6326)
author雾雨魔理沙 <lolisa@marisa.moe>
Tue, 25 Aug 2020 18:40:34 +0000 (11:40 -0700)
committerGitHub <noreply@github.com>
Tue, 25 Aug 2020 18:40:34 +0000 (11:40 -0700)
commit1a26a2e9e073e7fb579390edba8baf826743909c
tree6084e2cf9c9560a0d4324c7f935fbdf3c4d61b6f
parent751982ed9155c076ab934f24731174951ecceb8f
[Relay] Make check stricter by using Feature. Fixed multiple bugs. (#6326)

* save

lint

lint

lint

fix lint

lint

update

lint

save

save

save

lint

format

format

save

save

fix

use a form more suitable for numeric check

save

* save

* save

* lint

* save

* lint

* fix

* fix
17 files changed:
include/tvm/relay/feature.h
include/tvm/relay/transform.h
python/tvm/relay/prelude.py
python/tvm/relay/transform/transform.py
src/relay/analysis/feature.cc
src/relay/transforms/gradient.cc
src/relay/transforms/lazy_gradient_init.cc
src/relay/transforms/partial_eval.cc
src/relay/transforms/pass_util.h
src/relay/transforms/to_a_normal_form.cc
src/relay/transforms/to_cps.cc
tests/python/relay/test_analysis_feature.py
tests/python/relay/test_op_grad_level10.py
tests/python/relay/test_pass_gradient.py
tests/python/relay/test_pass_lazy_gradient_init.py
tests/python/relay/test_pass_merge_composite.py
tests/python/relay/test_pass_partial_eval.py