syft.frameworks.torch.mpc.beaver¶
Module Contents¶
-
syft.frameworks.torch.mpc.beaver.request_triple(crypto_provider: AbstractWorker, cmd: Callable, field: int, a_size: tuple, b_size: tuple, locations: list)¶ Generates a multiplication triple and sends it to all locations.
- Parameters
crypto_provider – worker you would like to request the triple from
cmd – An equation in einsum notation.
field – An integer representing the field size.
a_size – A tuple which is the size that a should be or a torch.Size instance
b_size – A tuple which is the size that b should be or a torch.Size intance
locations – A list of workers where the triple should be shared between.
- Returns
A triple of AdditiveSharedTensors such that c_shared = cmd(a_shared, b_shared).