-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
support auto generation V2 abs #53341
support auto generation V2 abs #53341
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
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.
需要修改一下API描述:
python/paddle/fluid/layers/layer_function_generator.py
,约307:
原始代码:
func.__name__ = op_type
func.__doc__ = _generate_doc_string_(
op_proto,
additional_args_lines=[
"name (str, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`."
],
)
return func
修改为:
func.__name__ = op_type
if (op_type == "abs"):
func.__doc__ = f"""
Abs Operator.
Perform elementwise abs for input `X`.
.. math::
out = |x|
Args :
x (Tensor): The input tensor of abs op.
out (Tensor), The output tensor of abs op.
"""
else:
func.__doc__ = _generate_doc_string_(
op_proto,
additional_args_lines=[
"name (str, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`."
],
)
return func
Sorry to inform you that 28084ca's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
请重新触发一下CI |
收到 |
rerun一下CINN的ci,感觉是随机挂 |
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
麻烦review一下abs的API说明文档@sunzhongkai588, @Ligoml |
PR types
Others
PR changes
Others
Description
support auto generation V2 abs