我在colab笔记本上遇到以下错误:
import syft as sy
from syft.workers.node_client import NodeClient
import torch
hook = sy.TorchHook(torch)
nodes = ["ws://localhost:3000/","ws://localhost:3001/"]
compute_nodes = []
for node in nodes:
compute_nodes.append( NodeClient(hook, node) )
NodeClient
实际上正在使用诸如self.connect()
,self.ws = websocket.create_connection(**args)
,websock.settimeout(timeout if timeout is not None else getdefaulttimeout())
,websock.connect(url, **options)
,self.sock_opt.timeout = options.get('timeout', self.sock_opt.timeout)
,{{1 }},self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),options.pop('socket', None))
和sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
。
但是会产生错误:
sock.connect(address)
。