cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d,tests/syft/lib/tenseal/tenseal_ckkstensor_test.py,,test_tenseal_ckkstensor_imul,#Any#Any#,198

Before Change


    enc_v1_ptr.link_context(ctx_ptr)

    // imul
    result_enc_ptr = enc_v1_ptr * v2

    result = result_enc_ptr.decrypt().get()
    _almost_equal(result, expected)

    // rmul
    result_enc_ptr = v2 * enc_v1_ptr

After Change



    enc_v1 = ts.ckks_tensor(context, v1)

    v2_ptr = sy.lib.python.List(v2).send(duet, searchable=True)
    ctx_ptr = context.send(duet, searchable=True)
    enc_v1_ptr = enc_v1.send(duet, searchable=True)

    enc_v1_ptr.link_context(ctx_ptr)

    // imul
    result_enc_ptr = enc_v1_ptr * v2_ptr

    result = decrypt(context, result_enc_ptr)
    _almost_equal(result, expected)


@pytest.mark.vendor(lib="tenseal")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckkstensor_test.py
Class Name:
Method Name: test_tenseal_ckkstensor_imul


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckkstensor_test.py
Class Name:
Method Name: test_tenseal_ckkstensor_isub


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckkstensor_test.py
Class Name:
Method Name: test_tenseal_ckkstensor_iadd