-
Notifications
You must be signed in to change notification settings - Fork 60
更新unique函数中的sorted参数 #569
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
更新unique函数中的sorted参数 #569
Conversation
modified: paconvert/api_mapping.json modified: tests/test_unique.py
Thanks for your contribution! |
modified: paconvert/api_mapping.json
@Qin-sx 单测为何失败了,这和之前的 |
modified: tests/test_Tensor_unique.py
应该是tensor.unique的测试没有修改,我之前是按照test_tensor文件名搜索的测试,没有搜索到test_Tensor相关测试。 |
在CodeStyle检查中,好像paconvert/transformer/import_transformer.py文件会报错 2025-04-04 03:45:43 black....................................................................Failed
2025-04-04 03:45:43 - hook id: black
2025-04-04 03:45:43 - duration: 4.15s
2025-04-04 03:45:43 - files were modified by this hook
2025-04-04 03:45:43 reformatted paconvert/transformer/import_transformer.py
2025-04-04 03:45:43 All done! ✨ 🍰 ✨
2025-04-04 03:45:43 1 file reformatted, 1785 files left unchanged.
2025-04-04 03:45:46 isort....................................................................Failed
2025-04-04 03:45:46 - hook id: isort
2025-04-04 03:45:46 - duration: 2.66s
2025-04-04 03:45:46 - files were modified by this hook
2025-04-04 03:45:46 Fixing /workspace/9d218bf9-9e8b-4860-8cc6-90ecdb2b49f7/PaConvert/paconvert/transformer/import_transformer.py
2025-04-04 03:45:46 Skipped 6 files |
@Qin-sx PR描述里链接一下映射文档的PR:PaddlePaddle/docs#7206 ,因为要保证映射文档与PaConvert是一致对应的。 |
obj.run( | ||
pytorch_code, ["result"], unsupport=True, reason="Paddle not support 'sorted' " | ||
) | ||
obj.run(pytorch_code, ["result"]) |
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.
sorted=True的情况下做了测试没?要反复交叉测试结果是否完全一致
PR Docs
PaddlePaddle/docs#7206
PR APIs