72b9ef8fe0d617149db5241b7197c0e8486f9557,opt_einsum/tests/test_sharing.py,,test_partial_sharing,#Any#,54

Before Change



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

    print("-" * 40)
    print("Without sharing:")

After Change



@pytest.mark.parametrize("backend", backends)
def test_partial_sharing(backend):
    eq = "ab,bc,cd->"
    x, y, z1 = helpers.build_views(eq)
    z2 = 2.0 * z1 - 1.0
    expr = contract_expression(eq, x.shape, y.shape, z1.shape)

    print("-" * 40)
    print("Without sharing:")
    num_exprs_nosharing = 0
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_partial_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_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_partial_sharing