Skip to content

Commit 36f91cd

Browse files
authored
修复部分api显示问题 (#7464)
* 修复部分api显示问题 * 恢复CI * 完全恢复 * 修正格式,添加api别名映射类别 * 修复格式,增加第12、13类内容 * micro fix * 过precommit * 修复显示问题 * 修复内容丢失 * format * rename deprecated * 删除冗余文件,修改格式文档 * fomat file name * format file name * deprecated * 注释 python apply_refereces.py * fix file name * for code
1 parent d5803fd commit 36f91cd

File tree

11 files changed

+2008
-644
lines changed

11 files changed

+2008
-644
lines changed

ci_scripts/hooks/pre-doc-compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ done
4343
## 3 apply PyTorch-PaddlePaddle mapping
4444
APIMAPPING_ROOT=${DOCROOT}/guides/model_convert/convert_from_pytorch
4545

46-
python ${APIMAPPING_ROOT}/tools/apply_references.py
46+
# python ${APIMAPPING_ROOT}/tools/apply_references.py
4747

4848
if [ $? -ne 0 ]; then
4949
echo "Error: API mapping generate script failed, please check changes in ${APIMAPPING_ROOT}"

docs/guides/model_convert/convert_from_pytorch/api_difference/linalg/torch.linalg.householder_product.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
torch.linalg.householder_product(input, tau, *, out=None)
77
```
88

9-
### [paddle.linalg.householder_product](https://github.com/PaddlePaddle/Paddle/blob/d6ea911bd1bfda5604807eeb18318e71b395ac58/python/paddle/tensor/linalg.py#L3744)
9+
### [paddle.linalg.householder_product](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/householder_product_cn.html#householder-product)
1010

1111
```python
1212
paddle.linalg.householder_product(x, tau, name=None)
File renamed without changes.
File renamed without changes.

docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md

Lines changed: 1046 additions & 215 deletions
Large diffs are not rendered by default.

docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_format_cn.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
9. 返回参数类型不一致
1919
10. 组合替代实现
2020
11. 可删除
21-
12. 功能缺失
21+
12. API 别名
22+
13. 功能缺失
2223

2324
> 注意:
2425
> 1. 分类的优先级依次递增,例如:如果同时 `仅参数名不一致` + `paddle 参数更多`,则分类为后者 `paddle 参数更多` ,如果同时 `paddle 参数更多` + `torch 参数更多`,则分类为后者 `torch 参数更多`
@@ -85,24 +86,24 @@ torch.xxx()
8586
paddle.xxx()
8687
```
8788

88-
是否需要 **参数映射****转写示例** 可查阅表格:
89-
90-
第 1、2、10 类不需要参数映射,其他类均需要写参数映射。第 1-5 类不需要转写示例,第 6-10 类需要写转写示例。第 11-12 类则无需新建文档,仅标注即可。
91-
92-
| 分类序号 | 分类名称 | 参数映射 | 转写示例 |
93-
| ------- | ----------------- | --------------- | --------------- |
94-
| 1 | API 完全一致 || |
95-
| 2 | 仅 API 调用方式不一致 | | |
96-
| 3 | 仅参数名不一致 | | |
97-
| 4 | paddle 参数更多 || |
98-
| 5 | 参数默认值不一致 | | |
99-
| 6 | torch 参数更多 || |
100-
| 7 | 输入参数用法不一致 || |
101-
| 8 | 输入参数类型不一致 | | |
102-
| 9 | 返回参数类型不一致 | | |
103-
| 10 | 组合替代实现 | | |
104-
105-
--------------------------------------------------------
89+
是否需要 **差异对比文档** 可查阅表格:
90+
91+
| 分类序号 | 分类名称 | 差异对比文档 |
92+
| ------- | ----------------- | --------------- |
93+
| 1 | API 完全一致 | |
94+
| 2 | 仅 API 调用方式不一致 | |
95+
| 3 | 仅参数名不一致 | |
96+
| 4 | paddle 参数更多 ||
97+
| 5 | 参数默认值不一致 ||
98+
| 6 | torch 参数更多 | |
99+
| 7 | 输入参数用法不一致 ||
100+
| 8 | 输入参数类型不一致 ||
101+
| 9 | 返回参数类型不一致 ||
102+
| 10 | 组合替代实现 | |
103+
| 11 | 可删除 | |
104+
| 12 | API 别名 | |
105+
| 13 | 功能缺失 ||
106+
-----------------------------------------------------
106107

107108
# API 映射关系文档 - 模板
108109
## 分类 1:API 完全一致

docs/guides/model_convert/convert_from_pytorch/tools/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
alias_macro_lines.tmp.md
33
generated.tmp.md
44
tmp_check.md
5+
no_implement.md
56

67
# files will be used in PaConvert
78
docs_mappings.json

0 commit comments

Comments
 (0)