-
Notifications
You must be signed in to change notification settings - Fork 861
[Docathon][Fix Doc Format No.51-53]add space after attr'' #7465
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
Conversation
修改一下标题,加一个简要描述如: |
- **norm_type** (float or int) - 所用 p-范数类型。可以是无穷范数的`inf`。 | ||
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自:attr:`parameters`的梯度的总范数为`nan`、`inf`或`-inf`,则抛出错误。 | ||
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自:attr:`parameters` 的梯度的总范数为`nan`、`inf`或`-inf`,则抛出错误。 | ||
|
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
已将attr前的中文冒号更改为英文冒号
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.
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.
已加空格
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.
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.
已调整
- **norm_type** (float or int) - 所用 p-范数类型。可以是无穷范数的`inf`。 | ||
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自:attr:`parameters`的梯度的总范数为`nan`、`inf`或`-inf`,则抛出错误。 | ||
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自:attr:`parameters` 的梯度的总范数为`nan`、`inf`或`-inf`,则抛出错误。 | ||
|
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.
- **norm_type** (float or int) - 所用 p-范数类型。可以是无穷范数的`inf`。 | ||
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自:attr:`parameters`的梯度的总范数为`nan`、`inf`或`-inf`,则抛出错误。 | ||
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自:attr:`parameters` 的梯度的总范数为`nan`、`inf`或`-inf`,则抛出错误。 | ||
|
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.
- **norm_type** (float or int) - 所用 p-范数类型。可以是无穷范数的`inf`。 | ||
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自:attr:`parameters`的梯度的总范数为`nan`、`inf`或`-inf`,则抛出错误。 | ||
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自 :attr:`parameters` 的梯度的总范数为`nan`、 `inf` 或`-inf`,则抛出错误。 | ||
|
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.
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.
或的前面不是有空格吗,不好意思,我没太明白,是要再加一个空格吗还是加在后面?
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.
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, 等 #7462 revert之后可以合入 |
PR types
others
PR changes
Docs
Description
Fix :attr:`` in the document
issue:#7435
@Echo-Nie @sunzhongkai588