[BYOC][FIX] Infer types in MergeComposite (#5766)
authormbaret <55580676+mbaret@users.noreply.github.com>
Fri, 12 Jun 2020 15:43:33 +0000 (16:43 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 15:43:33 +0000 (08:43 -0700)
commit04496d326553419f6b2970e88b80c60c4dbb174d
tree30213099060dc95b7fc16d27cafe9cc55c3662cb
parentf6726391075385afa0273afa9b41c371d483ac28
[BYOC][FIX] Infer types in MergeComposite (#5766)

If InferType isn't run between partitioning passes,
function calls are inserted which don't have a type.
This can result in failures for patterns which want
to check types.

This works around it simply by running InferType after
every partitioning.

Change-Id: Ie0887f0564a41eb0913bfe42a362e8effe9681b9
src/relay/transforms/merge_composite.cc
tests/python/relay/test_pass_merge_composite.py