syft.frameworks.torch.mpc.spdz¶
Module Contents¶
-
syft.frameworks.torch.mpc.spdz.no_wrap¶
-
syft.frameworks.torch.mpc.spdz.spdz_mul(cmd: Callable, x_sh, y_sh, crypto_provider: AbstractWorker, field: int)¶ Abstractly multiplies two tensors (mul or matmul)
- Parameters
cmd – a callable of the equation to be computed (mul or matmul)
x_sh (AdditiveSharingTensor) – the left part of the operation
y_sh (AdditiveSharingTensor) – the right part of the operation
crypto_provider (AbstractWorker) – an AbstractWorker which is used to generate triples
field (int) – an integer denoting the size of the field
- Returns
an AdditiveSharingTensor