Пример #1
0
 def __network_mode(self, workers):
     printf("Starting optimization with network workers")
     if not workers:
         raise RuntimeError("You have to specify a list of remote"
                            " worker addresses")
     # Connect to workers with ZeroMQ.
     self.cc = NetworkClientComm(addresses=parse_worker_addresses(workers))