Skip to content

Commit

Permalink
Change ParamsConverter logs to debug level (#3175)
Browse files Browse the repository at this point in the history
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Quick tests passed locally by running `./runtest.sh`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated.
  • Loading branch information
SYangster authored Jan 23, 2025
1 parent 67cbdf8 commit d151545
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions nvflare/app_opt/pt/client_api_launcher_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ def initialize(self, fl_ctx: FLContext) -> None:
if self._from_nvflare_converter is None:
# if not specified, assign defaults
if self._params_exchange_format == ExchangeFormat.NUMPY:
self.logger.info("Numpy from_nvflare_converter initialized")
self.logger.debug("Numpy from_nvflare_converter initialized")
self._from_nvflare_converter = NumpyToPTParamsConverter(
[AppConstants.TASK_TRAIN, AppConstants.TASK_VALIDATION]
)
elif self._params_exchange_format == ExchangeFormat.PYTORCH:
self.logger.info("Pytorch from_nvflare_converter initialized")
self.logger.debug("Pytorch from_nvflare_converter initialized")
self._from_nvflare_converter = PTReceiveParamsConverter(
[AppConstants.TASK_TRAIN, AppConstants.TASK_VALIDATION]
)
Expand All @@ -46,12 +46,12 @@ def initialize(self, fl_ctx: FLContext) -> None:
if self._to_nvflare_converter is None:
# if not specified, assign defaults
if self._params_exchange_format == ExchangeFormat.NUMPY:
self.logger.info("Numpy to_nvflare_converter initialized")
self.logger.debug("Numpy to_nvflare_converter initialized")
self._to_nvflare_converter = PTToNumpyParamsConverter(
[AppConstants.TASK_TRAIN, AppConstants.TASK_SUBMIT_MODEL]
)
elif self._params_exchange_format == ExchangeFormat.PYTORCH:
self.logger.info("Pytorch to_nvflare_converter initialized")
self.logger.debug("Pytorch to_nvflare_converter initialized")
self._to_nvflare_converter = PTSendParamsConverter(
[AppConstants.TASK_TRAIN, AppConstants.TASK_SUBMIT_MODEL]
)
Expand Down
8 changes: 4 additions & 4 deletions nvflare/app_opt/pt/in_process_client_api_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ def __init__(
if self._from_nvflare_converter is None:
# if not specified, assign defaults
if params_exchange_format == ExchangeFormat.NUMPY:
self.logger.info("Numpy from_nvflare_converter initialized")
self.logger.debug("Numpy from_nvflare_converter initialized")
self._from_nvflare_converter = NumpyToPTParamsConverter(
[AppConstants.TASK_TRAIN, AppConstants.TASK_VALIDATION]
)
elif params_exchange_format == ExchangeFormat.PYTORCH:
self.logger.info("Pytorch from_nvflare_converter initialized")
self.logger.debug("Pytorch from_nvflare_converter initialized")
self._from_nvflare_converter = PTReceiveParamsConverter(
[AppConstants.TASK_TRAIN, AppConstants.TASK_VALIDATION]
)
Expand All @@ -75,12 +75,12 @@ def __init__(
if self._to_nvflare_converter is None:
# if not specified, assign defaults
if params_exchange_format == ExchangeFormat.NUMPY:
self.logger.info("Numpy to_nvflare_converter initialized")
self.logger.debug("Numpy to_nvflare_converter initialized")
self._to_nvflare_converter = PTToNumpyParamsConverter(
[AppConstants.TASK_TRAIN, AppConstants.TASK_SUBMIT_MODEL]
)
elif params_exchange_format == ExchangeFormat.PYTORCH:
self.logger.info("Pytorch to_nvflare_converter initialized")
self.logger.debug("Pytorch to_nvflare_converter initialized")
self._to_nvflare_converter = PTSendParamsConverter(
[AppConstants.TASK_TRAIN, AppConstants.TASK_SUBMIT_MODEL]
)
Expand Down

0 comments on commit d151545

Please sign in to comment.