[MergeComposite] Fix InferType when module contains Prelude (#5797)
authorlixiaoquan <radioheads@163.com>
Tue, 16 Jun 2020 22:11:22 +0000 (06:11 +0800)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2020 22:11:22 +0000 (07:11 +0900)
commit6ed8d7a8c2a9d1c3ca104400f152ab8e97556705
tree8b899ac39067eae107dd2bc8da970394806946c9
parent8931cfa624269c5c558c0ae6faa3504764d04c64
[MergeComposite] Fix InferType when module contains Prelude (#5797)

A function may refer to other resources in the same module, so keep
  the content of original module when infering a function.
python/tvm/relay/testing/__init__.py
src/relay/transforms/merge_composite.cc
tests/python/relay/test_pass_merge_composite.py