72b9ef8fe0d617149db5241b7197c0e8486f9557,opt_einsum/tests/test_sharing.py,,test_complete_sharing,#,29

Before Change



@pytest.mark.parametrize("backend", ["numpy", torch_if_found])
def test_complete_sharing(backend):
    x = np.random.normal(size=(5, 4))
    y = np.random.normal(size=(4, 3))
    z = np.random.normal(size=(3, 2))

    print("-" * 40)
    print("Without sharing:")
    with shared_intermediates() as cache:

After Change


@pytest.mark.parametrize("backend", backends)
def test_complete_sharing(backend):
    eq = "ab,bc,cd->"
    views = helpers.build_views(eq)
    expr = contract_expression(eq, *(v.shape for v in views))

    print("-" * 40)
    print("Without sharing:")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 15

Instances


Project Name: dgasmith/opt_einsum
Commit Name: 72b9ef8fe0d617149db5241b7197c0e8486f9557
Time: 2018-08-20
Author: fritzo@uber.com
File Name: opt_einsum/tests/test_sharing.py
Class Name:
Method Name: test_complete_sharing


Project Name: dgasmith/opt_einsum
Commit Name: 72b9ef8fe0d617149db5241b7197c0e8486f9557
Time: 2018-08-20
Author: fritzo@uber.com
File Name: opt_einsum/tests/test_sharing.py
Class Name:
Method Name: test_sharing_value


Project Name: dgasmith/opt_einsum
Commit Name: 72b9ef8fe0d617149db5241b7197c0e8486f9557
Time: 2018-08-20
Author: fritzo@uber.com
File Name: opt_einsum/tests/test_sharing.py
Class Name:
Method Name: test_complete_sharing


Project Name: dgasmith/opt_einsum
Commit Name: 72b9ef8fe0d617149db5241b7197c0e8486f9557
Time: 2018-08-20
Author: fritzo@uber.com
File Name: opt_einsum/tests/test_sharing.py
Class Name:
Method Name: test_partial_sharing