Hi everybody,
I want to send a tensor from a server side to a client side and receive it then start to do some computations there. I have defined worker and server as following:
Server side:
from syft.workers.websocket_client import WebsocketClientWorker
alice = WebsocketClientWorker( related arguments)
print(type(alice))
x = torch.tensor([1,3,5])
x_ptr = x.send(alice)
print(x_ptr)
print(x)
Client side:
from syft.workers import websocket_server
server = websocket_server.WebsocketServerWorker( id=id, host=host, port=port, hook=hook, verbose=verbose)
server.start()
print('server.list_objects():', server.list_objects())
after running from client side then server side I got the following results from server side:
I want to have the tensor in client side I know syft.workers.websocket_server.WebsocketServerWorker has _recv_msg function but I do not know haw I can use it.
As a small disclaimer, you are using syft_0.2.X, which currently is not under active development. If you want to get familiar with the syft ecosystem I would recommend:
Joining the OpenMined slack and asking questions there, you will really fast responses.
Try the new 0.3.0 version.
If 0.2.X is a hard requirement, please create an issue here:
Hey @mrshenli, thank you for your answer.
Yes, I need to preserve the privacy so I am working with PySyft 0.2.4 and it seems my problems are because of the version.