secretflow.device.kernels package#

Submodules#

secretflow.device.kernels.heu module#

Functions:

to(self, device, config)

heu_to_spu(self, spu)

heu_to_same_heu(self, config)

heu_to_other_heu(self, dest_device, config)

heu_to_pyu(self, device, config)

add(self, other)

sub(self, other)

mul(self, other)

matmul(self, other)

secretflow.device.kernels.heu.to(self: HEUObject, device: Device, config)[source]#
secretflow.device.kernels.heu.heu_to_spu(self: HEUObject, spu: SPU)[source]#
secretflow.device.kernels.heu.heu_to_same_heu(self: HEUObject, config: MoveConfig)[source]#
secretflow.device.kernels.heu.heu_to_other_heu(self: DeviceObject, dest_device: HEU, config)[source]#
secretflow.device.kernels.heu.heu_to_pyu(self: HEUObject, device: PYU, config: MoveConfig)[source]#
secretflow.device.kernels.heu.add(self: HEUObject, other)[source]#
secretflow.device.kernels.heu.sub(self: HEUObject, other)[source]#
secretflow.device.kernels.heu.mul(self: HEUObject, other)[source]#
secretflow.device.kernels.heu.matmul(self: HEUObject, other)[source]#

secretflow.device.kernels.pyu module#

Functions:

to(self, device, config)

secretflow.device.kernels.pyu.to(self: PYUObject, device: Device, config)[source]#

secretflow.device.kernels.spu module#

Functions:

to(self, device, config)

spu_to_heu(self, heu, config)

psi_df(device, key, dfs, receiver[, ...])

psi_csv(device, key, input_path, ...[, ...])

psi_join_df(device, key, dfs, receiver, ...)

psi_join_csv(device, key, input_path, ...[, ...])

secretflow.device.kernels.spu.to(self: SPUObject, device: Device, config)[source]#
secretflow.device.kernels.spu.spu_to_heu(self: SPUObject, heu: HEU, config)[source]#
secretflow.device.kernels.spu.psi_df(device: SPU, key: Union[str, List[str], Dict[Device, List[str]]], dfs: List[PYUObject], receiver: str, protocol='KKRT_PSI_2PC', precheck_input=True, sort=True, broadcast_result=True, bucket_size=1048576, curve_type='CURVE_25519') List[PYUObject][source]#
secretflow.device.kernels.spu.psi_csv(device: SPU, key: Union[str, List[str], Dict[Device, List[str]]], input_path: Union[str, Dict[Device, str]], output_path: Union[str, Dict[Device, str]], receiver: str, protocol='KKRT_PSI_2PC', precheck_input=True, sort=True, broadcast_result=True, bucket_size=1048576, curve_type='CURVE_25519')[source]#
secretflow.device.kernels.spu.psi_join_df(device: SPU, key: Union[str, List[str], Dict[Device, List[str]]], dfs: List[PYUObject], receiver: str, join_party: str, protocol='KKRT_PSI_2PC', precheck_input=True, bucket_size=1048576, curve_type='CURVE_25519') List[PYUObject][source]#
secretflow.device.kernels.spu.psi_join_csv(device: SPU, key: Union[str, List[str], Dict[Device, List[str]]], input_path: Union[str, Dict[Device, str]], output_path: Union[str, Dict[Device, str]], receiver: str, join_party: str, protocol='KKRT_PSI_2PC', precheck_input=True, bucket_size=1048576, curve_type='CURVE_25519')[source]#

Module contents#