[Fix] Fix the logic of the number of nodes checking in op fusion (#4074)
authorYida Wang <yidawa@gmail.com>
Thu, 10 Oct 2019 19:24:32 +0000 (12:24 -0700)
committerZhi <5145158+zhiics@users.noreply.github.com>
Thu, 10 Oct 2019 19:24:32 +0000 (12:24 -0700)
commit9572d98e04425baa48cbefd1791affae68bef4f6
tree916f0ebc9a3701602ddcfce2c9e01ec4242f46f2
parent283afac081b2bff05d3e43b74a08d267b06f6ad0
[Fix] Fix the logic of the number of nodes checking in op fusion (#4074)

* move the number of nodes constraint in op fusion up to the dom tree level

* add test case of limiting the max number of ops to be fused

* uncomment other test cases
src/relay/pass/fuse_ops.cc
tests/python/relay/test_pass_fuse_ops.py