From d151545c712c991602c07721f75603a6ef68dbb9 Mon Sep 17 00:00:00 2001 From: Sean Yang Date: Thu, 23 Jan 2025 14:12:58 -0800 Subject: [PATCH] Change ParamsConverter logs to debug level (#3175) ### Types of changes - [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. --- nvflare/app_opt/pt/client_api_launcher_executor.py | 8 ++++---- nvflare/app_opt/pt/in_process_client_api_executor.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nvflare/app_opt/pt/client_api_launcher_executor.py b/nvflare/app_opt/pt/client_api_launcher_executor.py index 0b4e54c020..1c2833023e 100644 --- a/nvflare/app_opt/pt/client_api_launcher_executor.py +++ b/nvflare/app_opt/pt/client_api_launcher_executor.py @@ -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] ) @@ -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] ) diff --git a/nvflare/app_opt/pt/in_process_client_api_executor.py b/nvflare/app_opt/pt/in_process_client_api_executor.py index 8524c24ff6..6d84b26dfd 100644 --- a/nvflare/app_opt/pt/in_process_client_api_executor.py +++ b/nvflare/app_opt/pt/in_process_client_api_executor.py @@ -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] ) @@ -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] )