-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【PaddlePaddle Hackathon 3 No.20】为 Paddle 新增 vsplit API #44853
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
✅ This PR's description meets the template requirements! |
@tizhou86 |
OK,我这儿尽快review |
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.
整体OK,劳烦添加注释明确测试对应case。
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.
需要在init.py中添加新增函数,可以参考该实现:https://github.com/PaddlePaddle/Paddle/pull/44568/files ,添加完成后,需要重新跑一下ci。
@tizhou86 已更新 |
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.
LGTM
请补充中文API文档哈 |
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.
LGTM for docs~~~
预览工具无法正常构建出文档,目前还在排查原因,需要等一段时间 |
python/paddle/tensor/manipulation.py
Outdated
print(out0.shape) # [1, 6, 7] | ||
print(out1.shape) # [3, 6, 7] | ||
print(out2.shape) # [4, 6, 7] | ||
out0, out1, out2 = paddle.vplit(x, num_or_sections=[2, 3, -1]) |
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.
预览工具无法正常构建出文档,目前还在排查原因,需要等一段时间
应该是因为某种原因 docstring 没被解析出来,中文文档那面的 COPY-FROM 也是失败的,而且这里 vplit
明显是个 typo,CI 通过了的话说明这个示例并没有跑
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.
是的,我反馈给官网研发了,他们说近期会协助排查一下
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.
重新编译后正常,我这边没有问题了
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.
LGTM for docs
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.
LGTM
PR types
New features
PR changes
APIs
Describe
rfc: PaddlePaddle/community#166
中文API文档:PaddlePaddle/docs#5213
vsplit将输入按照给定的sections或num数量在垂直轴上(行上)划分,等效于将
split
API的axis固定为0.