f1d55314dacb8300e2bd6d3c595883c0cb5336f6,syft/frameworks/torch/mpc/securenn.py,,private_compare,#Any#Any#Any#Any#,172
Before Change
return:
β′ = β ⊕ (x > r).
assert isinstance(x_bit_sh, sy.AdditiveSharingTensor)
assert isinstance(r, sy.MultiPointerTensor)
assert isinstance(beta, sy.MultiPointerTensor)
// Would it be safer to have a different r/beta for each value in the tensor?
After Change
return:
β′ = β ⊕ (x > r).
if not isinstance(x_bit_sh, sy.AdditiveSharingTensor):
raise TypeError("x_bit_sh should be AdditiveSharingTensor.")
if not isinstance(r, sy.MultiPointerTensor):
raise TypeError("r should be MultiPointerTensor.")
if not isinstance(beta, sy.MultiPointerTensor):
raise TypeError("beta should be MultiPointerTensor.")
// Would it be safer to have a different r/beta for each value in the tensor?
workers = x_bit_sh.locations
crypto_provider = x_bit_sh.crypto_provider
p = x_bit_sh.field
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances Project Name: OpenMined/PySyft
Commit Name: f1d55314dacb8300e2bd6d3c595883c0cb5336f6
Time: 2020-10-20
Author: kevivthapion@gmail.com
File Name: syft/frameworks/torch/mpc/securenn.py
Class Name:
Method Name: private_compare
Project Name: keras-team/keras
Commit Name: 74329d0c1d26301be82955fbf8e524cb6508c953
Time: 2016-12-13
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name: Function
Method Name: __init__
Project Name: OpenMined/PySyft
Commit Name: f1d55314dacb8300e2bd6d3c595883c0cb5336f6
Time: 2020-10-20
Author: kevivthapion@gmail.com
File Name: syft/frameworks/torch/nn/functional.py
Class Name:
Method Name: conv2d