81ad18edc7360dc7110a479e051ba9161a25f2cf,tests/python/relay/test_pass_merge_composite.py,,test_pattern_with_check,#,731

Before Change


    ]

    result = run_opt_pass(before(), relay.transform.MergeComposite(pattern_table_false))
    expected = run_opt_pass(before(), relay.transform.InferType())
    assert tvm.ir.structural_equal(result, expected, map_free_vars=True)

    result = run_opt_pass(before(), relay.transform.MergeComposite(pattern_table_true))
    assert result.body.op.attrs["Composite"] == "conv_bias_relu"


def test_diamond_not_merge():

After Change


    pattern_table_true = [
        ("conv_bias_relu", make_conv_bias_relu_pattern(), _check_true)
    ]
    check_result(pattern_table_true, before(), expected())


def test_diamond_not_merge():
    r
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: apache/incubator-tvm
Commit Name: 81ad18edc7360dc7110a479e051ba9161a25f2cf
Time: 2020-05-26
Author: comaniac0422@gmail.com
File Name: tests/python/relay/test_pass_merge_composite.py
Class Name:
Method Name: test_pattern_with_check


Project Name: apache/incubator-tvm
Commit Name: 81ad18edc7360dc7110a479e051ba9161a25f2cf
Time: 2020-05-26
Author: comaniac0422@gmail.com
File Name: tests/python/relay/test_pass_merge_composite.py
Class Name:
Method Name: test_parallel_merge


Project Name: apache/incubator-tvm
Commit Name: 81ad18edc7360dc7110a479e051ba9161a25f2cf
Time: 2020-05-26
Author: comaniac0422@gmail.com
File Name: tests/python/relay/test_pass_merge_composite.py
Class Name:
Method Name: test_type_check