Repository navigation
【Hackathon 5th No.17】 为 Paddle 新增 pdist API - #660
Merged
Merged
Conversation
GreatV
reviewed
Sep 27, 2023
|
|
||
| ## 命名与参数设计 | ||
|
|
||
| API的设计为paddle.cdist(x, y, p=2.0),其中 `x` 严格为 shape=[M, N] 的 Tensor,`p` 为p-范数对应的p值,输出为一行 `Mx(M-1)/2` 列的 Tensor |
Contributor
Author
There was a problem hiding this comment.
这里为啥变成了
cdist
typo,sry已修正,辛苦review~
zxcd
reviewed
Oct 7, 2023
zxcd
reviewed
Oct 7, 2023
|
|
||
| ## 3、意义 | ||
|
|
||
| 飞桨支持直接两两计算向量间的距离。 |
Contributor
Author
There was a problem hiding this comment.
已修改
飞桨支持计算大小为(NxM)的矩阵中,N个向量两两之间的p-norm距离。
zxcd
reviewed
Oct 7, 2023
Contributor
Author
|
已做相应修改,不知道还有没有什么问题,辛苦review~ |
luotao1
approved these changes
Oct 9, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.