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 en docs】 Fix document formatting*test=document_fix #43996
Conversation
修复Returns格式问题
修复Returns和Return Type格式问题。
为了解决中英文不一致的问题,统一将Returns内容第一个标点符号改成逗号。删掉Return Type
Sorry to inform you that e1c2b51's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
emmmm,CI 里有不少 fluid API 的示例代码挂掉了,这些 fluid API 是修复任务里的吗? |
是我全量搜索然后进行修改的,是的,示例代码挂掉了 ^ ^ |
我看了下,有 20 个示例代码错误,全是 fluid 的,fluid 的 API 还有必要修复吗 @Ligoml |
@ReganYue 梦柳刚刚说「fluid下的API不用管」(微信上回复我的 😂),要不辛苦恢复一下? |
@@ -1098,7 +1094,8 @@ def margin_ranking_loss(input, | |||
reduction (str, optional): Indicate the reduction to apply to the loss, the candicates are ``'none'``, ``'mean'``, ``'sum'``.If :attr:`reduction` is ``'none'``, the unreduced loss is returned; If :attr:`reduction` is ``'mean'``, the reduced mean loss is returned. If :attr:`reduction` is ``'sum'``, the reduced sum loss is returned. Default is ``'mean'``. | |||
name (str, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`. | |||
|
|||
Returns: Tensor, if :attr:`reduction` is ``'mean'`` or ``'sum'``, the out shape is :math:`[1]`, otherwise the shape is the same as `input` .The same dtype as input tensor. | |||
Returns: | |||
Tensor, if :attr:`reduction` is ``'mean'`` or ``'sum'``, the out shape is :math:`[1]`, otherwise the shape is the same as `input` .The same dtype as input tensor. |
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.
emmm,这行有点长,最好折断下。
还有上面那个参数 reduction
那行,也太长了,非常影响阅读体验……可以参考其他几个函数折断下(目测都是一样的,可以直接 copy)
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.
嗯嗯嗯
Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>
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.
good job! LGTM
梦柳姐辛苦啦~ |
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
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
PR types
Others
PR changes
Docs
Describe
【Fix en docs】 Fix document formatting
· Returns
· Return Type
PR of the Chinese document about this pr:PaddlePaddle/docs#4978