Skip to content
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

Add new python api #4649

Merged
merged 3 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ API设计文档的目的是为了社区开发者更容易的参与开源项目
:hidden:

api_design_guidelines_standard_cn.md
new_python_api_cn.md
new_cpp_op_cn.md
api_docs_guidelines_cn.md
api_accpetance_criteria_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
```

- 在用于API命名时,以下建议使用全称,不推荐使用缩写

| 不规范命名 | 规范命名 |
| :-------- | :----------- |
| div | divide |
Expand Down Expand Up @@ -238,7 +238,7 @@
```

- 常见的数学计算API中的逐元素操作不需要加上elementwise前缀,按照某一轴操作不需要加上reduce前缀,一些例子如下

| paddle2.0之前 | pytorch | numpy | tensorflow | paddle2.0之后 |
| :------------- | :----- | :------ | :--------- | :--------------- |
| elementwise_add | add | add | add | add |
Expand All @@ -254,7 +254,7 @@
| reduce_all | all | all | reduce_all | all |
| reduce_any | any | any | reduce_any | any |
| reduce_mean | mean | mean | reduce_mean | mean |



- 整数取模和取余
Expand Down
Loading