-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix error in networks' docstrings . #5622
Fix error in networks' docstrings . #5622
Conversation
whose type is not ParameterAttribute, no bias is defined. If the | ||
parameter is set to True, the bias is initialized to zero. | ||
:type bias_attr: ParameterAttribute | None | bool | Any | ||
:param bias_attr: The bias attribute. If the parameter is set to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter attribute for bias. If this parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
parameter is set to True, the bias is initialized to zero. | ||
:type bias_attr: ParameterAttribute | None | bool | Any | ||
:param bias_attr: The bias attribute. If the parameter is set to | ||
True or None, the bias is initialized to zero. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this parameter is set to False, no bias will be defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
由于这里的bias是用来计算lstm中peephole connection
的权值,不可缺少。所以这里的bias不能设置为False或者是除ParameterAttribute|None|True 以外的类型,不然程序会报错。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resolve #5621