81ad18edc7360dc7110a479e051ba9161a25f2cf,tests/python/relay/test_pass_merge_composite.py,,test_type_check,#,806

Before Change


    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"


if __name__ == "__main__":
    test_simple_merge()

After Change


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


if __name__ == "__main__":
    test_simple_merge()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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_type_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_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