-
Hi, I'm struggling to design physical-server-architecture of my application using Secretflow. So I was looking at the documentation, noticed PYU can take 2 arguments but no usage is described and used in this repository. I will ask again if it is feasible when I have a sample architecture diagram, but for now I would be glad to know the specific use/example of the second argument of PYU. Maybe this will help me think about my architecture. Have a happy new year! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi, @Krout0n , this is really a good question!
As you can see, the built-in algorithms of SecretFlow haven't encountered a situation where two PYUs with same party were built. What i am interested is your struggle about physical-server-architecture. Could you share more infos? |
Beta Was this translation helpful? Give feedback.
Hi, @Krout0n , this is really a good question!
PYU
takesparty
as the first arg andnode
as second arg in construction. Andnode
defaults to empty by now.node
is designed to identify two different PYUs of the same party.The
__str__
and__repr__
of PYU isparty_node
, while__eq__
and__hash__
of PYU are based onstr(PYU)
. So we can tell the difference of two PYUs of the same party, e.g., one PYU is tagged with node 1 and the other PYU is tagged with node 2.As you can see, the built-in algorithms of SecretFlow haven't encountered a situation where two PYUs with same party were built.
The main reason is the computing of one party occurs in one PYU by now. Maybe node will be used when com…