c3511c5e2c2f903606209c9eb6d56c2221570a24,tests/python/unittest/test_tir_transform_storage_rewrite.py,,test_storage_share,#,20

Before Change


    bounds = tvm.te.schedule.InferBound(s)
    assert isinstance(bounds, tvm.container.Map)
    stmt = tvm.te.schedule.ScheduleOps(s, bounds)
    Ab = tvm.tir.decl_buffer(A.shape, A.dtype, name="A")
    Bb = tvm.tir.decl_buffer(B.shape, B.dtype, name="B")
    stmt = tvm.tir.ir_pass.StorageFlatten(stmt, {A: Ab, B: Bb}, 64)

    mod = tvm.IRModule.from_expr(tvm.tir.PrimFunc([Ab, Bb], stmt))
    mod = tvm.tir.transform.Simplify()(mod)
    mod = tvm.tir.transform.StorageRewrite()(mod)
    stmt = mod["main"].body

After Change


    assert isinstance(bounds, tvm.container.Map)
    stmt = tvm.te.schedule.ScheduleOps(s, bounds)

    func = tvm.te.schedule.SchedulePostProcToPrimFunc([A, B], stmt, None)
    mod = tvm.IRModule.from_expr(func)
    mod = tvm.tir.transform.StorageFlatten(64)(mod)

    mod = tvm.tir.transform.Simplify()(mod)
    mod = tvm.tir.transform.StorageRewrite()(mod)
    stmt = mod["main"].body
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 25

Instances


Project Name: apache/incubator-tvm
Commit Name: c3511c5e2c2f903606209c9eb6d56c2221570a24
Time: 2020-04-19
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_tir_transform_storage_rewrite.py
Class Name:
Method Name: test_storage_share


Project Name: apache/incubator-tvm
Commit Name: c3511c5e2c2f903606209c9eb6d56c2221570a24
Time: 2020-04-19
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_tir_transform_storage_rewrite.py
Class Name:
Method Name: test_inplace_rule2


Project Name: apache/incubator-tvm
Commit Name: c3511c5e2c2f903606209c9eb6d56c2221570a24
Time: 2020-04-19
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_tir_transform_inject_copy_intrin.py
Class Name:
Method Name: test_single_point_test


Project Name: apache/incubator-tvm
Commit Name: c3511c5e2c2f903606209c9eb6d56c2221570a24
Time: 2020-04-19
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_tir_transform_storage_rewrite.py
Class Name:
Method Name: test_storage_combine


Project Name: apache/incubator-tvm
Commit Name: c3511c5e2c2f903606209c9eb6d56c2221570a24
Time: 2020-04-19
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_tir_transform_inject_copy_intrin.py
Class Name:
Method Name: test_copy2d


Project Name: apache/incubator-tvm
Commit Name: c3511c5e2c2f903606209c9eb6d56c2221570a24
Time: 2020-04-19
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_tir_transform_storage_rewrite.py
Class Name:
Method Name: test_inplace_rule


Project Name: apache/incubator-tvm
Commit Name: c3511c5e2c2f903606209c9eb6d56c2221570a24
Time: 2020-04-19
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_tir_transform_inject_copy_intrin.py
Class Name:
Method Name: test_copy_pad


Project Name: apache/incubator-tvm
Commit Name: c3511c5e2c2f903606209c9eb6d56c2221570a24
Time: 2020-04-19
Author: tqchen@users.noreply.github.com
File Name: tests/python/unittest/test_tir_transform_storage_rewrite.py
Class Name:
Method Name: test_storage_share