Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenMined/SyMPC
/ functions
Functions
591 in github.com/OpenMined/SyMPC
⨍
Functions
591
◇
Types & classes
44
↳
Endpoints
9
Function
register_generator
(func_generator)
src/sympc/store/__init__.py:16
Function
register_get
(func_get)
src/sympc/store/__init__.py:52
Function
register_primitive_generator
Decorator to register a crypto primitive provider. Args: name (str): Name of the primitive. # noqa: DAR201
src/sympc/store/__init__.py:7
Function
register_primitive_store_add
Decorator to add primitives to the store. Args: name (str): Name of the primitive. # noqa: DAR201
src/sympc/store/__init__.py:25
Function
register_primitive_store_get
Decorator to retrieve primitives from the store. Args: name (str): Name of the primitive. # noqa: DAR201
src/sympc/store/__init__.py:43
Method
rmatmul
Apply the "rmatmul" operation between "y" and "self". Args: y: self@y Raises: NotImplementedError: Raised wh
src/sympc/tensor/replicatedshare_tensor.py:615
Method
rmatmul
Apply the "rmatmul" operation between "y" and "self". Args: y (torch.Tensor): y @ self Returns: ShareTensor.
src/sympc/tensor/share_tensor.py:307
Method
rmatmul
Apply the "rmatmul" operation between "y" and "self". Args: y (Union["MPCTensor", torch.Tensor, float, int]): y @ self R
src/sympc/tensor/mpc_tensor.py:552
Method
rshift
Apply the "rshift" operation to "self". Args: y (int): shift value Returns: ReplicatedSharedTensor: Result o
src/sympc/tensor/replicatedshare_tensor.py:558
Method
rsub
Apply the "sub" operation between "y" and "self". Args: y (Union[int, float, torch.Tensor, "ReplicatedSharedTensor"]): y -self
src/sympc/tensor/replicatedshare_tensor.py:442
Method
rsub
Apply the "sub" operation between "y" and "self". Args: y (Union[int, float, torch.Tensor, "ShareTensor"]): y - self Ret
src/sympc/tensor/share_tensor.py:240
Method
rsub
Apply the "sub" operation between "y" and "self". Args: y (Union["MPCTensor", torch.Tensor, float, int]): self - y Retur
src/sympc/tensor/mpc_tensor.py:441
Method
rtruediv
Apply recriprocal of MPCTensor. Args: y (Union[torch.Tensor, float, int]): Numerator. Returns: MPCTensor: Re
src/sympc/tensor/mpc_tensor.py:579
Function
run_inference_conv_model
Run the inference on the passed in model. Args: expected: the origin model mpc_model: the Syft model x_mpc: the MPCTensor
benchmarks/module/conv_model.py:82
Method
scale
Scale for the FixedPrecision Encoder. Returns: int: the scale.
src/sympc/encoder/fp_encoder.py:125
Function
set_session
Set the current sessionfor a party. Args: session (Session): session to be set
src/sympc/session/session_utils.py:24
Function
share
Share remote state dictionary between the parties of the session. Arguments: session: Session holding different information like the part
src/sympc/module/__init__.py:57
Function
share
(_self, **kwargs: Dict[Any, Any])
src/sympc/tensor/mpc_tensor.py:1192
Method
share_state_dict
Share the parameters of the normal Linear layer. Args: state_dict (Dict[str, Any]): the state dict that would be shared
src/sympc/module/nn/linear.py:77
Function
spdz_mask
Spdz mask. Args: x_sh (ShareTensor): X share. y_sh (ShareTensor): Y share. op_str (str): Operator. Returns:
src/sympc/protocol/spdz/spdz.py:99
Function
stack_share_tensor
Helper method that performs torch.stack on the shares of the Tensors. Args: session_uuid_str (str): UUID to identify the session on each
src/sympc/tensor/static.py:57
Method
step
Perform one step of gradient descent.
src/sympc/optim/sgd.py:24
Method
sub
Apply the "sub" operation between "self" and "y". Args: y (Union[int, float, torch.Tensor, "ReplicatedSharedTensor"]): self - y
src/sympc/tensor/replicatedshare_tensor.py:429
Method
sub
Apply the "sub" operation between "self" and "y". Args: y (Union[int, float, torch.Tensor, "ShareTensor"]): self - y Ret
src/sympc/tensor/share_tensor.py:227
Method
sub
Apply the "sub" operation between "self" and "y". Args: y (Union["MPCTensor", torch.Tensor, float, int]): self - y Retur
src/sympc/tensor/mpc_tensor.py:430
Method
submodprime
Computes subtraction(x-y) modulo PRIME_NUMBER constant. Args: x (torch.Tensor): input tensor y (torch.tensor): input
src/sympc/tensor/replicatedshare_tensor.py:189
Function
test_add_store
()
tests/sympc/store/crypto_store_test.py:38
Function
test_additional_attributes
(get_clients)
tests/sympc/module/module_test.py:147
Function
test_argmax
(get_clients)
tests/sympc/tensor/static_test.py:29
Function
test_argmax_dim
(dim, keepdim, get_clients)
tests/sympc/tensor/static_test.py:47
Function
test_argmax_multiple_max
(get_clients)
tests/sympc/tensor/static_test.py:16
Function
test_backward
(get_clients)
tests/sympc/tensor/mpc_tensor_test.py:564
Function
test_backward_with_one_requires_grad
(get_clients)
tests/sympc/tensor/mpc_tensor_test.py:607
Function
test_backward_without_requires_grad
(get_clients)
tests/sympc/tensor/mpc_tensor_test.py:586
Function
test_bin_mul_private
(get_clients, security)
tests/sympc/protocol/falcon/falcon_test.py:184
Function
test_bin_public_xor
(get_clients, bit)
tests/sympc/tensor/mpc_tensor_test.py:662
Function
test_bin_xor
(get_clients, bit, security)
tests/sympc/tensor/mpc_tensor_test.py:681
Function
test_bit_decomposition_ttp
(get_clients, security_type)
tests/sympc/protocol/aby3/aby3_test.py:194
Function
test_bit_injection_exception
(get_clients)
tests/sympc/protocol/aby3/aby3_test.py:175
Function
test_bit_injection_prime
(get_clients, security_type)
tests/sympc/protocol/aby3/aby3_test.py:92
Function
test_bit_injection_session_ring
(get_clients, security_type)
tests/sympc/protocol/aby3/aby3_test.py:116
Function
test_cat
(get_clients)
tests/sympc/tensor/static_test.py:129
Function
test_comp_mpc_public
(get_clients, protocol, op_str)
tests/sympc/tensor/mpc_tensor_test.py:473
Function
test_comp_public_mpc
(get_clients, protocol, op_str)
tests/sympc/tensor/mpc_tensor_test.py:491
Function
test_comparison_mpc_mpc
(get_clients, protocol, op_str)
tests/sympc/tensor/mpc_tensor_test.py:435
Function
test_conv_mpc_mpc
(get_clients, nr_clients, bias, stride, padding, op_str)
tests/sympc/tensor/mpc_tensor_test.py:174
Function
test_copy
()
tests/sympc/session/session_test.py:234
Function
test_different_config
()
tests/sympc/tensor/replicatedshare_tensor_test.py:49
Function
test_different_ring_size
()
tests/sympc/tensor/replicatedshare_tensor_test.py:66
Function
test_different_session_ids
()
tests/sympc/tensor/share_tensor_test.py:30
Function
test_different_session_ids
()
tests/sympc/tensor/replicatedshare_tensor_test.py:26
Function
test_different_shares
()
tests/sympc/tensor/replicatedshare_tensor_test.py:36
Function
test_div_with_float_exception
()
tests/sympc/tensor/share_tensor_test.py:121
Function
test_eq
()
tests/sympc/protocol/fss/fss_test.py:33
Function
test_eq
()
tests/sympc/protocol/falcon/falcon_test.py:45
Function
test_eq
()
tests/sympc/protocol/aby3/aby3_test.py:34
Function
test_eq
Test __eq__ for Session.
tests/sympc/session/session_test.py:214
Function
test_equality_mpc_mpc
(get_clients, protocol, op_str)
tests/sympc/tensor/mpc_tensor_test.py:454
Function
test_exception_bit_extraction
()
tests/sympc/tensor/replicatedshare_tensor_test.py:607
Function
test_exception_empty_primitive_store_no_key
Exception when there exists no key in store.
tests/sympc/protocol/protocol_test.py:65
Function
test_exception_empty_primitive_store_no_primitive
Exception when there exists a key in store but has no primitive.
tests/sympc/protocol/protocol_test.py:78
Function
test_exception_get_op
()
tests/sympc/tensor/replicatedshare_tensor_test.py:538
Function
test_exception_init
()
tests/sympc/store/crypto_primitive_provider_test.py:69
Function
test_exception_insufficient_fss_primitives
()
tests/sympc/protocol/protocol_test.py:55
Function
test_exception_malicious_less_parties
(get_clients, parties=2)
tests/sympc/protocol/falcon/falcon_test.py:33
Function
test_exception_mul_malicious
(get_clients)
tests/sympc/protocol/falcon/falcon_test.py:143
Function
test_exception_no_security_levels
()
tests/sympc/protocol/protocol_test.py:31
Function
test_exception_no_share_class
()
tests/sympc/protocol/protocol_test.py:24
Function
test_exception_prime_dtype
(op_str)
tests/sympc/tensor/replicatedshare_tensor_test.py:528
Function
test_exception_rshift
()
tests/sympc/tensor/replicatedshare_tensor_test.py:600
Function
test_exception_unsupported_fss_operation
()
tests/sympc/protocol/protocol_test.py:50
Function
test_exception_value_error
(get_clients)
tests/sympc/approximations/tanh_test.py:28
Function
test_exception_value_error
(get_clients)
tests/sympc/approximations/reciprocal_test.py:26
Function
test_fixed_point
(precision, base)
tests/sympc/tensor/replicatedshare_tensor_test.py:101
Function
test_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:593
Function
test_fp_base_setter
Test the base setter for the FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:71
Function
test_fp_decoding
Test correct decoding with FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:40
Function
test_fp_encoder_init
Test correct FixedPointEncoder initialisation.
tests/sympc/encoder/fp_encoder_test.py:9
Function
test_fp_encoding
Test correct encoding with FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:20
Function
test_fp_precision_setter
Test the precision setter for the FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:63
Function
test_fp_string_representation
Test the string representation of the FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:79
Function
test_generate_and_transfer_primitive
( get_clients: Callable, nr_parties: int, nr_instances: int, nr_instances_retrieve: int, )
tests/sympc/store/crypto_primitive_provider_test.py:133
Function
test_generate_primitive
( get_clients: Callable, nr_parties: int, nr_instances: int )
tests/sympc/store/crypto_primitive_provider_test.py:105
Function
test_generate_primitive_exception
()
tests/sympc/store/crypto_primitive_provider_test.py:74
Function
test_generate_primitive_from_dict_beaver_conv2d
(get_clients)
tests/sympc/store/crypto_primitive_provider_test.py:388
Function
test_generate_primitive_from_dict_beaver_matmul
(get_clients)
tests/sympc/store/crypto_primitive_provider_test.py:288
Function
test_generate_primitive_from_dict_beaver_mul
(get_clients)
tests/sympc/store/crypto_primitive_provider_test.py:332
Function
test_generate_shares
()
tests/sympc/tensor/mpc_tensor_test.py:390
Function
test_generate_shares_config
(get_clients)
tests/sympc/tensor/mpc_tensor_test.py:418
Function
test_get_nr_bits
()
tests/sympc/utils/mpc_utils_test.py:4
Function
test_get_shape_none
()
tests/sympc/tensor/mpc_tensor_test.py:656
Function
test_get_store
(nr_instances: int)
tests/sympc/store/crypto_store_test.py:48
Function
test_grad_add_backward
(get_clients)
tests/sympc/grad/grad_functions_test.py:130
Function
test_grad_add_different_dims_backward
(get_clients)
tests/sympc/grad/grad_functions_test.py:98
Function
test_grad_add_different_dims_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:81
Function
test_grad_add_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:113
Function
test_grad_conv2d_backward
(get_clients)
tests/sympc/grad/grad_functions_test.py:338
Function
test_grad_conv2d_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:313
Function
test_grad_div_backward
(get_clients)
tests/sympc/grad/grad_functions_test.py:839
Function
test_grad_div_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:820
← previous
next →
301–400 of 591, ranked by callers