提交 92847d0b 编写于 作者: C Channingss

add comment of function:_rename_or_remove_weight

上级 cd46c6aa
...@@ -48,8 +48,10 @@ def _rename_or_remove_weight(weights, origin_name, target_name=None, is_remove=T ...@@ -48,8 +48,10 @@ def _rename_or_remove_weight(weights, origin_name, target_name=None, is_remove=T
Args: Args:
weights(dict[String:np.ndarray]): Dict stored paramters, the key in weights is name of parameter. weights(dict[String:np.ndarray]): Dict stored paramters, the key in weights is name of parameter.
origin_name(String): Name of parameter to eename or remove. origin_name(String): Name of parameter to rename or remove.
target_name(String, optional): if target_name is not None, add new key-value pair {target_name:weights[origin_name]} to weights, and target_name must follow paddle's naming rule of parameters. Default: None. target_name(String, optional): if target_name is not None, add new key-value pair
{target_name:weights[origin_name]} to weights, and target_name must follow paddle's
naming rule of parameters. Default: None.
is_remove: if is_remove is True, remove origin key-value pair. Default: True. is_remove: if is_remove is True, remove origin key-value pair. Default: True.
Returns: Returns:
None None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册