New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fobs auto register #2567
Fobs auto register #2567
Conversation
Why do we need to do this now? If not functionally required, we should wait until after 2.5.0. |
This is functional required. Without this, user can not define their custom class or define a custom class they have to learn how to build a decomposed component and learn how to register three components in client , server and agent
…________________________________
From: Yan Cheng ***@***.***>
Sent: Wednesday, May 8, 2024 2:42 PM
To: NVIDIA/NVFlare ***@***.***>
Cc: Chester Chen ***@***.***>; Review requested ***@***.***>
Subject: Re: [NVIDIA/NVFlare] Fobs auto register (PR #2567)
Why do we need to do this now? If not functionally required, we should wait until after 2.5.0.
—
Reply to this email directly, view it on GitHub<#2567 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAD5FQ3FAIJPB3JXMNBYQ7DZBKL3LAVCNFSM6AAAAABHNGVB6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBRGUZDQNRUGQ>.
You are receiving this because your review was requested.Message ID: ***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add unit tests to show that certain components are registered and available for decomposers, and certain objects are not
…ers folder, and user defined decomposer_module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add unit tests, looks good in general
Added unit test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general. Please see my comments for changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM, Yan has a point if we need to register custom decomposer at SP/CP.
What are the cases when users will send back custom data types to SP/CP?
Removed the custom decomposers register for SP and CP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/build |
1 similar comment
/build |
* WIP: auto register fobs. * WIP * Made changes to server and client fobs_initialize(). * Added auto fobs regiater. * codestyle fix. * Adjust to use register_nvflare_decomposers() for IPCAgent. * add some cleanup. * codestyle fix. * Codestyle fix. * re-design the custom Fobs register to only scan from nvflare_decomposers folder, and user defined decomposer_module. * removed no use import. * Added unit test for custom_fobs_initialize(). * Addressed the PR reviews. * changed a log warning message. * Added None handling for register_ext_decomposers. * Fixed unit test. * fixed unit test. * fix unit test. * codestyle fix. * Removed the custom decomposer regoister for SP and CP. Added the register for simulator_worker. * removed no use import. --------- Co-authored-by: Yuan-Ting Hsieh (謝沅廷) <yuantingh@nvidia.com>
Fixes # .
Description
Add the ability to automatically register all the Fobs decomposers.
Types of changes
./runtest.sh
.