MCPcopy Create free account

hub / github.com/OpenMined/SyMPC / functions

Functions591 in github.com/OpenMined/SyMPC

Functionregister_generator
(func_generator)
src/sympc/store/__init__.py:16
Functionregister_get
(func_get)
src/sympc/store/__init__.py:52
Functionregister_primitive_generator
Decorator to register a crypto primitive provider. Args: name (str): Name of the primitive. # noqa: DAR201
src/sympc/store/__init__.py:7
Functionregister_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
Functionregister_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
Methodrmatmul
Apply the "rmatmul" operation between "y" and "self". Args: y: self@y Raises: NotImplementedError: Raised wh
src/sympc/tensor/replicatedshare_tensor.py:615
Methodrmatmul
Apply the "rmatmul" operation between "y" and "self". Args: y (torch.Tensor): y @ self Returns: ShareTensor.
src/sympc/tensor/share_tensor.py:307
Methodrmatmul
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
Methodrshift
Apply the "rshift" operation to "self". Args: y (int): shift value Returns: ReplicatedSharedTensor: Result o
src/sympc/tensor/replicatedshare_tensor.py:558
Methodrsub
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
Methodrsub
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
Methodrsub
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
Methodrtruediv
Apply recriprocal of MPCTensor. Args: y (Union[torch.Tensor, float, int]): Numerator. Returns: MPCTensor: Re
src/sympc/tensor/mpc_tensor.py:579
Functionrun_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
Methodscale
Scale for the FixedPrecision Encoder. Returns: int: the scale.
src/sympc/encoder/fp_encoder.py:125
Functionset_session
Set the current sessionfor a party. Args: session (Session): session to be set
src/sympc/session/session_utils.py:24
Functionshare
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
Functionshare
(_self, **kwargs: Dict[Any, Any])
src/sympc/tensor/mpc_tensor.py:1192
Methodshare_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
Functionspdz_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
Functionstack_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
Methodstep
Perform one step of gradient descent.
src/sympc/optim/sgd.py:24
Methodsub
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
Methodsub
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
Methodsub
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
Methodsubmodprime
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
Functiontest_add_store
()
tests/sympc/store/crypto_store_test.py:38
Functiontest_additional_attributes
(get_clients)
tests/sympc/module/module_test.py:147
Functiontest_argmax
(get_clients)
tests/sympc/tensor/static_test.py:29
Functiontest_argmax_dim
(dim, keepdim, get_clients)
tests/sympc/tensor/static_test.py:47
Functiontest_argmax_multiple_max
(get_clients)
tests/sympc/tensor/static_test.py:16
Functiontest_backward
(get_clients)
tests/sympc/tensor/mpc_tensor_test.py:564
Functiontest_backward_with_one_requires_grad
(get_clients)
tests/sympc/tensor/mpc_tensor_test.py:607
Functiontest_backward_without_requires_grad
(get_clients)
tests/sympc/tensor/mpc_tensor_test.py:586
Functiontest_bin_mul_private
(get_clients, security)
tests/sympc/protocol/falcon/falcon_test.py:184
Functiontest_bin_public_xor
(get_clients, bit)
tests/sympc/tensor/mpc_tensor_test.py:662
Functiontest_bin_xor
(get_clients, bit, security)
tests/sympc/tensor/mpc_tensor_test.py:681
Functiontest_bit_decomposition_ttp
(get_clients, security_type)
tests/sympc/protocol/aby3/aby3_test.py:194
Functiontest_bit_injection_exception
(get_clients)
tests/sympc/protocol/aby3/aby3_test.py:175
Functiontest_bit_injection_prime
(get_clients, security_type)
tests/sympc/protocol/aby3/aby3_test.py:92
Functiontest_bit_injection_session_ring
(get_clients, security_type)
tests/sympc/protocol/aby3/aby3_test.py:116
Functiontest_cat
(get_clients)
tests/sympc/tensor/static_test.py:129
Functiontest_comp_mpc_public
(get_clients, protocol, op_str)
tests/sympc/tensor/mpc_tensor_test.py:473
Functiontest_comp_public_mpc
(get_clients, protocol, op_str)
tests/sympc/tensor/mpc_tensor_test.py:491
Functiontest_comparison_mpc_mpc
(get_clients, protocol, op_str)
tests/sympc/tensor/mpc_tensor_test.py:435
Functiontest_conv_mpc_mpc
(get_clients, nr_clients, bias, stride, padding, op_str)
tests/sympc/tensor/mpc_tensor_test.py:174
Functiontest_copy
()
tests/sympc/session/session_test.py:234
Functiontest_different_config
()
tests/sympc/tensor/replicatedshare_tensor_test.py:49
Functiontest_different_ring_size
()
tests/sympc/tensor/replicatedshare_tensor_test.py:66
Functiontest_different_session_ids
()
tests/sympc/tensor/share_tensor_test.py:30
Functiontest_different_session_ids
()
tests/sympc/tensor/replicatedshare_tensor_test.py:26
Functiontest_different_shares
()
tests/sympc/tensor/replicatedshare_tensor_test.py:36
Functiontest_div_with_float_exception
()
tests/sympc/tensor/share_tensor_test.py:121
Functiontest_eq
()
tests/sympc/protocol/fss/fss_test.py:33
Functiontest_eq
()
tests/sympc/protocol/falcon/falcon_test.py:45
Functiontest_eq
()
tests/sympc/protocol/aby3/aby3_test.py:34
Functiontest_eq
Test __eq__ for Session.
tests/sympc/session/session_test.py:214
Functiontest_equality_mpc_mpc
(get_clients, protocol, op_str)
tests/sympc/tensor/mpc_tensor_test.py:454
Functiontest_exception_bit_extraction
()
tests/sympc/tensor/replicatedshare_tensor_test.py:607
Functiontest_exception_empty_primitive_store_no_key
Exception when there exists no key in store.
tests/sympc/protocol/protocol_test.py:65
Functiontest_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
Functiontest_exception_get_op
()
tests/sympc/tensor/replicatedshare_tensor_test.py:538
Functiontest_exception_init
()
tests/sympc/store/crypto_primitive_provider_test.py:69
Functiontest_exception_insufficient_fss_primitives
()
tests/sympc/protocol/protocol_test.py:55
Functiontest_exception_malicious_less_parties
(get_clients, parties=2)
tests/sympc/protocol/falcon/falcon_test.py:33
Functiontest_exception_mul_malicious
(get_clients)
tests/sympc/protocol/falcon/falcon_test.py:143
Functiontest_exception_no_security_levels
()
tests/sympc/protocol/protocol_test.py:31
Functiontest_exception_no_share_class
()
tests/sympc/protocol/protocol_test.py:24
Functiontest_exception_prime_dtype
(op_str)
tests/sympc/tensor/replicatedshare_tensor_test.py:528
Functiontest_exception_rshift
()
tests/sympc/tensor/replicatedshare_tensor_test.py:600
Functiontest_exception_unsupported_fss_operation
()
tests/sympc/protocol/protocol_test.py:50
Functiontest_exception_value_error
(get_clients)
tests/sympc/approximations/tanh_test.py:28
Functiontest_exception_value_error
(get_clients)
tests/sympc/approximations/reciprocal_test.py:26
Functiontest_fixed_point
(precision, base)
tests/sympc/tensor/replicatedshare_tensor_test.py:101
Functiontest_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:593
Functiontest_fp_base_setter
Test the base setter for the FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:71
Functiontest_fp_decoding
Test correct decoding with FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:40
Functiontest_fp_encoder_init
Test correct FixedPointEncoder initialisation.
tests/sympc/encoder/fp_encoder_test.py:9
Functiontest_fp_encoding
Test correct encoding with FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:20
Functiontest_fp_precision_setter
Test the precision setter for the FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:63
Functiontest_fp_string_representation
Test the string representation of the FixedPointEncoder.
tests/sympc/encoder/fp_encoder_test.py:79
Functiontest_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
Functiontest_generate_primitive
( get_clients: Callable, nr_parties: int, nr_instances: int )
tests/sympc/store/crypto_primitive_provider_test.py:105
Functiontest_generate_primitive_exception
()
tests/sympc/store/crypto_primitive_provider_test.py:74
Functiontest_generate_primitive_from_dict_beaver_conv2d
(get_clients)
tests/sympc/store/crypto_primitive_provider_test.py:388
Functiontest_generate_primitive_from_dict_beaver_matmul
(get_clients)
tests/sympc/store/crypto_primitive_provider_test.py:288
Functiontest_generate_primitive_from_dict_beaver_mul
(get_clients)
tests/sympc/store/crypto_primitive_provider_test.py:332
Functiontest_generate_shares
()
tests/sympc/tensor/mpc_tensor_test.py:390
Functiontest_generate_shares_config
(get_clients)
tests/sympc/tensor/mpc_tensor_test.py:418
Functiontest_get_nr_bits
()
tests/sympc/utils/mpc_utils_test.py:4
Functiontest_get_shape_none
()
tests/sympc/tensor/mpc_tensor_test.py:656
Functiontest_get_store
(nr_instances: int)
tests/sympc/store/crypto_store_test.py:48
Functiontest_grad_add_backward
(get_clients)
tests/sympc/grad/grad_functions_test.py:130
Functiontest_grad_add_different_dims_backward
(get_clients)
tests/sympc/grad/grad_functions_test.py:98
Functiontest_grad_add_different_dims_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:81
Functiontest_grad_add_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:113
Functiontest_grad_conv2d_backward
(get_clients)
tests/sympc/grad/grad_functions_test.py:338
Functiontest_grad_conv2d_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:313
Functiontest_grad_div_backward
(get_clients)
tests/sympc/grad/grad_functions_test.py:839
Functiontest_grad_div_forward
(get_clients)
tests/sympc/grad/grad_functions_test.py:820
← previousnext →301–400 of 591, ranked by callers