syft.grid.abstract_grid

Module Contents

class syft.grid.abstract_grid.AbstractGrid

Bases: abc.ABC

abstract search(self, *query: Union[str])
abstract serve_model(self, model, id: str, mpc: bool = False, allow_remote_inference: bool = False, allow_download: bool = False, n_replica: int = 1)
abstract query_model_hosts(self, id: str, mpc: bool = False)
abstract run_remote_inference(self, id: str, data: torch.Tensor, mpc: bool = False)
_connect_all_nodes(self, nodes: Tuple[Any], node_type: Any)

Connect all nodes to each other. :param nodes: A tuple of grid clients.

_check_node_type(self, grid_workers: List[Any], node_type: Any)

Private method used to verify if workers used by grid network are exactly what we expect. :returns: Boolean result. :rtype: result