Reduce logging verbosity when loading checkpoints (#24287)

test=develop
revert-24981-add_device_attr_for_regulization
Yang Zhang 5 years ago committed by GitHub
parent 001c9fcca2
commit 0494239b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1712,7 +1712,7 @@ def load(program, model_path, executor=None, var_list=None):
if not os.path.exists(parameter_file_name):
# model file save by fluid.save not found, try to load model file saved with
# [save_vars, save_params, save_persistables]
_logger.warning(
_logger.debug(
"{} not found, try to load model file saved with [ save_params, save_persistables, save_vars ]".
format(parameter_file_name))
if executor is None:
@ -1876,7 +1876,7 @@ def load_program_state(model_path, var_list=None):
if not os.path.exists(parameter_file_name):
# model file saved with fluid.save is not found, try to load model file saved with
# [save_vars, save_params, save_persistables]
_logger.warning(
_logger.debug(
"{} not found, try to load model file saved with [ save_params, save_persistables, save_vars ]".
format(parameter_file_name))

Loading…
Cancel
Save