{"action":"created","issue":{"url":"https://api.github.com/repos/OpenMined/PySyft/issues/1697","repository_url":"https://api.github.com/repos/OpenMined/PySyft","labels_url":"https://api.github.com/repos/OpenMined/PySyft/issues/1697/labels{/name}","comments_url":"https://api.github.com/repos/OpenMined/PySyft/issues/1697/comments","events_url":"https://api.github.com/repos/OpenMined/PySyft/issues/1697/events","html_url":"https://github.com/OpenMined/PySyft/issues/1697","id":381658512,"node_id":"MDU6SXNzdWUzODE2NTg1MTI=","number":1697,"title":"Adding .send() to torch.Tensor()","user":{"login":"iamtrask","id":4328594,"node_id":"MDQ6VXNlcjQzMjg1OTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4328594?v=4","gravatar_id":"","url":"https://api.github.com/users/iamtrask","html_url":"https://github.com/iamtrask","followers_url":"https://api.github.com/users/iamtrask/followers","following_url":"https://api.github.com/users/iamtrask/following{/other_user}","gists_url":"https://api.github.com/users/iamtrask/gists{/gist_id}","starred_url":"https://api.github.com/users/iamtrask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamtrask/subscriptions","organizations_url":"https://api.github.com/users/iamtrask/orgs","repos_url":"https://api.github.com/users/iamtrask/repos","events_url":"https://api.github.com/users/iamtrask/events{/privacy}","received_events_url":"https://api.github.com/users/iamtrask/received_events","type":"User","site_admin":false},"labels":[{"id":1130182197,"node_id":"MDU6TGFiZWwxMTMwMTgyMTk3","url":"https://api.github.com/repos/OpenMined/PySyft/labels/Torch1.0","name":"Torch1.0","color":"64e5bc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-16T15:58:23Z","updated_at":"2018-12-07T18:32:13Z","closed_at":null,"author_association":"MEMBER","body":"This is a child Issue of https://github.com/OpenMined/PySyft/issues/1695. Be sure to check the parent issue to ensure this issue has all dependencies required to finish it.\r\n\r\nIn this issue, you should add the method .send() to torch.Tensor. This tensor should call .create_pointer() (to create a pointer), then serialize the tensor, and send the message to a remote worker. Thus, this method will accept two parameters: self and location. It will return the pointer object.\r\n\r\nThis issue relies on two Sub Issues to be accomplished first (in order):\r\n\r\n- [ ] register_obj() added to BaseWorker  #1699\r\n- [ ] receive_obj() added to BaseWorker\r\n\r\nFinal Acceptance Criteria:\r\n- [ ] ensure .send() works as described above\r\n- [ ] .send() has correct docstrings (and any other functions created while creating .send() )\r\n- [ ] .send() has several unit tests. In particular it should test sending tensors of ALL types (Float, Int, etc.)\r\n\r\nKnown Dependencies: torch.Tensor must already have .create_pointer() and .serialize() implemented."},"comment":{"url":"https://api.github.com/repos/OpenMined/PySyft/issues/comments/445323551","html_url":"https://github.com/OpenMined/PySyft/issues/1697#issuecomment-445323551","issue_url":"https://api.github.com/repos/OpenMined/PySyft/issues/1697","id":445323551,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTMyMzU1MQ==","user":{"login":"LaRiffle","id":12446521,"node_id":"MDQ6VXNlcjEyNDQ2NTIx","avatar_url":"https://avatars3.githubusercontent.com/u/12446521?v=4","gravatar_id":"","url":"https://api.github.com/users/LaRiffle","html_url":"https://github.com/LaRiffle","followers_url":"https://api.github.com/users/LaRiffle/followers","following_url":"https://api.github.com/users/LaRiffle/following{/other_user}","gists_url":"https://api.github.com/users/LaRiffle/gists{/gist_id}","starred_url":"https://api.github.com/users/LaRiffle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaRiffle/subscriptions","organizations_url":"https://api.github.com/users/LaRiffle/orgs","repos_url":"https://api.github.com/users/LaRiffle/repos","events_url":"https://api.github.com/users/LaRiffle/events{/privacy}","received_events_url":"https://api.github.com/users/LaRiffle/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T18:32:13Z","updated_at":"2018-12-07T18:32:13Z","author_association":"COLLABORATOR","body":"Yes, basically have an internal storage id which is a function `f` : `id_on_remote_worker = f(<worker>, <ptr_id>)`  should be fine !"}}
{"actor":{"display_login":"LaRiffle"}}