[PassManager] Implement pass manager tracing API (#4782)
authorJared Roesch <jroesch@octoml.ai>
Tue, 28 Jan 2020 11:25:52 +0000 (03:25 -0800)
committerZhi <5145158+zhiics@users.noreply.github.com>
Tue, 28 Jan 2020 11:25:52 +0000 (19:25 +0800)
commit9c383f64780fbd6e60a13019d096878cca9e3d74
treef54f5cd619fa1e7bef1bef028cdf8ac63fe2da33
parentd54036a909b9157d15b26462499aba10bbf920c8
[PassManager] Implement pass manager tracing API (#4782)

* Implement pass tracing API

* Set is_before correctly

* Add docs for trace function

* Fix lint

* Remove PDB

* Ensure trace_func is set before calling

* Fix conditional
docs/dev/relay_pass_infra.rst
include/tvm/ir/transform.h
python/tvm/relay/transform.py
src/ir/transform.cc
src/relay/ir/transform.cc
tests/python/relay/test_pass_manager.py