Skip to content

How to use fl_ctx across classes #2099

Closed Answered by SYangster
jingyunc asked this question in Q&A
Discussion options

You must be logged in to vote

When setting a new prop of fl_ctx, there should be no issues with this, is CURRENT_AGGR a str?

Retrieving the public prop from the Gatherer requires an additional step given that setting the prop and getting the prop can occur across different sites (since the scattering client can be different from the gathering client).

The FL Context contains a peer context that contains public props when processing a message from another party (https://nvflare.readthedocs.io/en/main/programming_guide/fl_context.html#peer-context-fl-ctx-get-peer-context). However a peer context is only available in certain situations for cross-component data sharing (eg. certain callback functions, execute(), and handl…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jingyunc
Comment options

You must be logged in to vote
0 replies
Comment options

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