Pysyft: Multiple workers with same id issues

Created on 4 Jul 2019  路  2Comments  路  Source: OpenMined/PySyft

Describe the bug
When multiple workers with the same id are declared, we observe some weird behaviour.
Could be just raise an Error when this happen? Alternatively, handle this in a consistent way.

To Reproduce

import torch
import syft as sy
hook = sy.TorchHook(torch)

worker = sy.VirtualWorker(hook, id="worker")
worker.clear_objects()
ptr = torch.tensor([1,2,3]).send(worker)
print(worker._objects) # >>> Has 1 object!

worker = sy.VirtualWorker(hook, id="worker")
worker.clear_objects()
ptr = torch.tensor([1,2,3]).send(worker)
print(worker._objects) # >>> Empty!
Type

All 2 comments

@LaRiffle I would like to take this up.

Sure!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iamtrask picture iamtrask  路  4Comments

MetaT1an picture MetaT1an  路  3Comments

deevashwer picture deevashwer  路  4Comments

akirahirohito picture akirahirohito  路  3Comments

LaRiffle picture LaRiffle  路  3Comments