-
Notifications
You must be signed in to change notification settings - Fork 267
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.17】 为 Paddle 新增 pdist API #660
Conversation
|
||
## 命名与参数设计 | ||
|
||
API的设计为paddle.cdist(x, y, p=2.0),其中 `x` 严格为 shape=[M, N] 的 Tensor,`p` 为p-范数对应的p值,输出为一行 `Mx(M-1)/2` 列的 Tensor |
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.
这里为啥变成了 cdist
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.
这里为啥变成了
cdist
typo,sry已修正,辛苦review~
|
||
## 3、意义 | ||
|
||
飞桨支持直接两两计算向量间的距离。 |
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.
已修改
飞桨支持计算大小为(NxM)的矩阵中,N个向量两两之间的p-norm距离。
已做相应修改,不知道还有没有什么问题,辛苦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.
LGTM
No description provided.