!2066 change parameter init_data log level to debug

Merge pull request !2066 from yihuaijie/master
pull/2066/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 30b19165a2

@ -362,7 +362,7 @@ class _Executor:
if not auto_parallel_mode: if not auto_parallel_mode:
param.init_data() param.init_data()
elif key not in obj.parameter_layout_dict: elif key not in obj.parameter_layout_dict:
logger.info("Layout dict does not contain the key %s.", key) logger.debug("Layout dict does not contain the key %s.", key)
param.init_data(set_sliced=True) param.init_data(set_sliced=True)
else: else:
layout = obj.parameter_layout_dict[key] layout = obj.parameter_layout_dict[key]

@ -305,7 +305,7 @@ class Cell:
logger.info("layout dict does not contain the key %s", key) logger.info("layout dict does not contain the key %s", key)
continue continue
if self.parameters_dict()[key].sliced: if self.parameters_dict()[key].sliced:
logger.info("Param %s is already sliced.", key) logger.debug("Param %s is already sliced.", key)
continue continue
layout = self.parameter_layout_dict[key] layout = self.parameter_layout_dict[key]
new_tensor = _load_tensor_by_layout(tensor, layout) new_tensor = _load_tensor_by_layout(tensor, layout)
@ -318,7 +318,7 @@ class Cell:
logger.info("layout dict does not contain the key %s", key) logger.info("layout dict does not contain the key %s", key)
continue continue
if params[key].sliced: if params[key].sliced:
logger.info("Param %s is already sliced.", key) logger.debug("Param %s is already sliced.", key)
continue continue
layout = self.parameter_layout_dict[key] layout = self.parameter_layout_dict[key]
new_tensor = _load_tensor_by_layout(tensor, layout) new_tensor = _load_tensor_by_layout(tensor, layout)
@ -484,7 +484,7 @@ class Cell:
if not auto_parallel_mode: if not auto_parallel_mode:
param.init_data() param.init_data()
elif param.name not in self.parameter_layout_dict: elif param.name not in self.parameter_layout_dict:
logger.info("Layout dict does not contain the key %s.", param.name) logger.debug("Layout dict does not contain the key %s.", param.name)
param.init_data(set_sliced=True) param.init_data(set_sliced=True)
else: else:
layout = self.parameter_layout_dict[param.name] layout = self.parameter_layout_dict[param.name]

Loading…
Cancel
Save