-
Notifications
You must be signed in to change notification settings - Fork 273
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.31】为 Paddle 新增 column_stack / row_stack / dstack / hstack / vstack API #684
Conversation
- `paddle.vstack`,作为独立的函数调用 | ||
- `Tensor.vstack`,作为 Tensor 的方法使用 | ||
|
||
**疑问** : 这些接口为什么会有 `Tensor.XXX` 的方法?一般堆叠都是对多个 Tensor 的操作,另外,`PyTorch`、`Numpy` 也没有类似的使用方法,还请确认一下。 |
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.
不需要类方法,5个Tensor.*
都移除
添加 python 上层接口: | ||
|
||
- `paddle.column_stack(x, name=None)` | ||
- `Tensor.column_stack` (有疑问) |
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.
类方法都去掉
|
||
- **维度测试** | ||
- Paddle API 支持的最低维度为 0 维,单测中应编写相应的 0 维尺寸测试 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.
有没有异常测试
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,需要有异常测试的,我尽快更新一下 ~ 谢谢!
需要保证前向计算的精度正确性,通过 numpy 实现的函数的对比结果 | ||
|
||
- **维度测试** | ||
- Paddle API 支持的最低维度为 0 维,单测中应编写相应的 0 维尺寸测试 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.
是的,需要注意0维的问题
非常抱歉拖了多日才更新,此次更新:
请评审~ 非常感谢! |
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
Others
PR changes
Docs
Description
【Hackathon 5th No.31】为 Paddle 新增 column_stack / row_stack / dstack / hstack / vstack API
请评审!