Skip to content

Conversation

zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Aug 1, 2022

更新飞桨 Python API 开发指南文档

@paddle-bot
Copy link

paddle-bot bot commented Aug 1, 2022

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5102.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:[Beta]飞桨文档预览工具

- 代码示例:该 API 的使用示例代码
- 函数主体代码:包括输入参数的检查、调用算子的执行逻辑等内容

![zeros_example](./images/zeros_python_api.png)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

  • 图去掉蓝框吧,不好看

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

```
> 注意:执行单测一定要用 `ctest` 命令,不可直接 `python test_*.py`。

对于需要开发 c++ 算子的 API,可以把 c++ 算子的单元测试与 Python API 的单元测试写在一个文件中。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • C++ ,C大写

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@Ligoml Ligoml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Ligoml Ligoml merged commit 35d61ff into PaddlePaddle:develop Aug 2, 2022
@zyfncg zyfncg deleted the update_new_python_api branch August 2, 2022 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants