[Relay] add some check for the ad algorithm (#3585)
author雾雨魔理沙 <lolisa@marisa.moe>
Fri, 19 Jul 2019 22:55:28 +0000 (15:55 -0700)
committerWuwei Lin <wuwei@apache.org>
Fri, 19 Jul 2019 22:55:28 +0000 (06:55 +0800)
commit1a00cab9847df4372e0435df83b524de07e6ef96
treecf131eece73a798908aa78fc0861ad9c2d4cb28f
parent313bc9de4d0d75b76164e50a87e3394fae4870c9
[Relay] add some check for the ad algorithm (#3585)

* do

* fix test
python/tvm/relay/op/_tensor_grad.py
src/relay/pass/gradient.cc
tests/python/relay/test_feature.py
tests/python/relay/test_op_grad_level1.py
tests/python/relay/test_op_grad_level3.py
tests/python/relay/test_pass_gradient.py
tests/python/relay/test_pass_partial_eval.py
tests/python/relay/test_pass_to_cps.py