Skip to content

Changing PYUObject.device.party is same as sf.to? #233

Answered by rivertalk
Krout0n asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Krout0n , it's really a good question.

I know assigning PYUObject.device.party is not right way but I was just wondering. Is this consistent with the expected behavior?

For the moment, I think the answer is positive, the behavior is the same as alice_val.to since the underline distributed engine will fetch the content of alice_val to bob automatically (lazy and silently).

But the it is not a right to do this, we should use val.to to handle this semantic, since the fetching implementation may be changed in the future, but the to semantic will be stable.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zhouaihui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants