[Relay] Add Defunctionalization Pass (#6400)
authorAndrew Liu <andrewlliu@gmail.com>
Thu, 10 Sep 2020 16:03:20 +0000 (09:03 -0700)
committerGitHub <noreply@github.com>
Thu, 10 Sep 2020 16:03:20 +0000 (09:03 -0700)
commitb81bdee8ebd1a9b53781b5e3b38694cc40507ac8
tree759282f539f358f348166aea6267d6849485ba80
parente6374dc4afcab22d6f18a966240e3ec7c993bee8
[Relay] Add Defunctionalization Pass  (#6400)

* type args not automatically inferred...

* working on type arg infer

* fix type arg infer

* WIP

* wip

* wip

* revert type_infer

* working

* fix up test

* fix

* remove DeGlobal

* lint

* fix std move

* comments

* fix comments

* review

* style
python/tvm/relay/transform/transform.py
src/relay/transforms/defunctionalization.cc [new file with mode: 0644]
tests/python/relay/test_pass_defunctionalization.py [new file with mode: 0644]