cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d,tests/syft/lib/tenseal/tenseal_ckkstensor_test.py,,test_tenseal_ckkstensor_iadd,#Any#Any#,140
Before Change
enc_v1_ptr.link_context(ctx_ptr)
// iadd
result_enc_ptr = enc_v1_ptr + v2
result = result_enc_ptr.decrypt().get()
_almost_equal(result, expected)
// radd
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)
// iadd
result_enc_ptr = enc_v1_ptr + v2_ptr
result = decrypt(context, result_enc_ptr)
_almost_equal(result, expected)
// iadd inplace
enc_v1_ptr += v2_ptr
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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_iadd
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