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

【Hackathon 5th No.46】API转换84-102 #321

Merged
merged 6 commits into from
Nov 6, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Nov 1, 2023

PR Docs

https://github.com/PaddlePaddle/community/blob/master/hackathon/hackathon_5th/%E3%80%90PaddlePaddle%20Hackathon%205th%E3%80%91%E5%BC%80%E6%BA%90%E8%B4%A1%E7%8C%AE%E4%B8%AA%E4%BA%BA%E6%8C%91%E6%88%98%E8%B5%9B%E6%A1%86%E6%9E%B6%E5%BC%80%E5%8F%91%E4%BB%BB%E5%8A%A1%E5%90%88%E9%9B%86.md#no46%E4%B8%BApaddle%E4%BB%A3%E7%A0%81%E8%BD%AC%E6%8D%A2%E5%B7%A5%E5%85%B7%E6%96%B0%E5%A2%9Eapi%E8%BD%AC%E6%8D%A2%E8%A7%84%E5%88%99
API转换名单 中第5组(编号为84 ~ 102)

文档PR PaddlePaddle/docs#6281

分布式测试使用2张GPU卡,增加单测在tests/distributed目录,使用 run_test.sh+文件名 测试

PR APIs

84	torch.distributed.ReduceOp	paddle.distributed.ReduceOp	已有文档验证无误
85	torch.distributed.get_backend			增加文档
86	torch.distributed.send	paddle.distributed.send	已有文档验证无误
87	torch.distributed.recv	paddle.distributed.recv	已有文档验证无误
88	torch.distributed.isend	paddle.distributed.isend	已有文档验证无误
89	torch.distributed.irecv	paddle.distributed.irecv	已有文档验证无误
90	torch.distributed.broadcast_object_list	paddle.distributed.broadcast_object_list	已有文档验证无误
91	torch.distributed.reduce	paddle.distributed.reduce	已有文档验证无误
92	torch.distributed.rpc.rpc_sync	paddle.distributed.rpc.rpc_sync	不支持 Tensor 类型参数,原 PR
https://github.com/PaddlePaddle/PaConvert/pull/209
93	torch.distributed.rpc.rpc_async	paddle.distributed.rpc.rpc_async	不支持 Tensor 类型参数
94	torch.distributed.gather		功能缺失
95	torch.distributed.barrier	paddle.distributed.barrier	已有文档验证无误
96	torch.distributed.all_reduce	paddle.distributed.all_reduce	文档增加sync_op参数说明
97	torch.distributed.all_gather	paddle.distributed.all_gather	文档增加sync_op参数说明
98	torch.distributed.ReduceOp.SUM	paddle.distributed.ReduceOp.SUM	 使用ReduceOp文档,已有文档验证无误
99	torch.distributed.ReduceOp.MAX	paddle.distributed.ReduceOp.MAX	使用ReduceOp文档,已有文档验证无误
100	torch.distributed.ReduceOp.MIN	paddle.distributed.ReduceOp.MIN	使用ReduceOp文档,已有文档验证无误
101	torch.distributed.ReduceOp.PRODUCT	paddle.distributed.ReduceOp.PROD	使用ReduceOp文档,已有文档验证无误
102	torch.nn.DataParallel	paddle.DataParallel	已有文档验证无误

运行截图
84 torch.distributed.ReduceOp paddle.distributed.ReduceOp
image

85 torch.distributed.get_backend
image

86 torch.distributed.send paddle.distributed.send
image

87 torch.distributed.recv paddle.distributed.recv
image

88 torch.distributed.isend paddle.distributed.isend
image

89 torch.distributed.irecv paddle.distributed.irecv
image

90 torch.distributed.broadcast_object_list paddle.distributed.broadcast_object_list
image

91 torch.distributed.reduce paddle.distributed.reduce
image

95 torch.distributed.barrier paddle.distributed.barrier
image

96 torch.distributed.all_reduce paddle.distributed.all_reduce
image

97 torch.distributed.all_gather paddle.distributed.all_gather
image

98 torch.distributed.ReduceOp.SUM paddle.distributed.ReduceOp.SUM
image

99 torch.distributed.ReduceOp.MAX paddle.distributed.ReduceOp.MAX
image

100 torch.distributed.ReduceOp.MIN paddle.distributed.ReduceOp.MIN
image

101 torch.distributed.ReduceOp.PRODUCT paddle.distributed.ReduceOp.PROD
image

102 torch.nn.DataParallel paddle.DataParallel
image

paconvert/api_mapping.json Outdated Show resolved Hide resolved
paconvert/api_mapping.json Outdated Show resolved Hide resolved
paconvert/api_mapping.json Outdated Show resolved Hide resolved
paconvert/api_mapping.json Outdated Show resolved Hide resolved
paconvert/api_mapping.json Outdated Show resolved Hide resolved
@zhwesky2010
Copy link
Collaborator

zhwesky2010 commented Nov 3, 2023

文档有些问题,历史已有的映射文档需要仔细检查。

以上测试,本地都能运行吗?是否需要更新运行截图

@co63oc
Copy link
Contributor Author

co63oc commented Nov 3, 2023

文档有些问题,历史已有的映射文档需要仔细检查。

以上测试,本地都能运行吗?是否需要更新运行截图

文档已更新,测试可以运行,使用compare是抛出异常,没有输出截图没有变化

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit 2dd61d9 into PaddlePaddle:master Nov 6, 2023
8 checks passed
@co63oc co63oc deleted the group6 branch November 16, 2023 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants