[BYOC, MergeComposite] Add additional check before re-using the cached match (#5552)
authormasahi <masahi129@gmail.com>
Mon, 11 May 2020 12:00:43 +0000 (21:00 +0900)
committerGitHub <noreply@github.com>
Mon, 11 May 2020 12:00:43 +0000 (21:00 +0900)
commit0e877521f454e239f5c44bb88e557801444d81a5
treef83d9c2217a58d2dfabc70d08fdca98dbf39761b
parent7bad56b74e057a13c5577d512adf61bc82e2af86
[BYOC, MergeComposite] Add additional check before re-using the cached match (#5552)

* Add additional check before re-using the cached match in merge composite

* clean up ExtractPattern calls
src/relay/transforms/merge_composite.cc
tests/python/relay/test_pass_merge_composite.py