[RELAY] Basic block normal form (#6152)
authorHaibin Lin <linhaibin.eric@gmail.com>
Tue, 4 Aug 2020 04:38:51 +0000 (21:38 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Aug 2020 04:38:51 +0000 (21:38 -0700)
commitb6db7e33f7a589fdf5dce062d8488ce2f83a3727
tree97ba131274e3a3fa4386b26f46cef690c2d6fd07
parent90bde33e60a3ae0d18a767eba9a2092eab204788
[RELAY] Basic block normal form (#6152)

* initial commit

* refactor utils

* add util

* revert anf test

* update test

* fix logging

* fix scope bug

* complete tests

* remove logging

* revert refactoring

* add one more test case

* fix missing var binding

* fix test

* fix lint

* fix lint

* fix clang-format

* fix lint

* fix lint

* commit missing code

* add analysis api

* fix lint

* fix lint

* lint

* add test for func

* address CR

* fix typo

* fix return type

* fix lint

* refactor classes

* fix lint

* remove prints

* address comments

Co-authored-by: Ubuntu <ubuntu@ip-172-31-42-138.ec2.internal>
13 files changed:
include/tvm/relay/analysis.h
include/tvm/relay/transform.h
python/tvm/relay/analysis/analysis.py
python/tvm/relay/transform/transform.py
src/relay/analysis/dependency_graph.cc
src/relay/backend/build_module.cc
src/relay/backend/vm/compiler.cc
src/relay/transforms/let_list.h
src/relay/transforms/pass_util.h
src/relay/transforms/to_a_normal_form.cc
src/relay/transforms/to_basic_block_normal_form.cc [new file with mode: 0644]
tests/python/relay/test_analysis_basic_block_normal_form.py [new file with mode: 0644]
tests/python/relay/test_pass_to_basic_block_normal_form.py [new file with mode: 0644]