-
Notifications
You must be signed in to change notification settings - Fork 777
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【Hackathon 5th No.17】 为 Paddle 新增 pdist API 中文文档 (#6391)
* add householder_product_cn doc * doc style * add pdist cn doc * Update Overview_cn.rst * Update Overview_cn.rst * Delete docs/api/paddle/linalg/householder_product_cn.rst
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. _cn_api_paddle_pdist: | ||
|
||
pdist | ||
------------------------------- | ||
|
||
.. py:function:: paddle.pdist(x, p=2.0, name=None): | ||
计算输入形状为 N x M 的 Tensor 中 N 个向量两两组合(pairwise)的 p 范数。 | ||
|
||
|
||
参数 | ||
:::::::::::: | ||
|
||
- **x** (Tensor) - 输入的 Tensor,形状为 :math:`N \times M` 。 | ||
- **p** (float, 可选) - 计算每个向量对之间的 p 范数距离的值。默认值为 :math:`2.0`。 | ||
- **name** (str, 可选) - 具体用法请参见 :ref:`api_guide_Name` ,一般无需设置,默认值为 None。 | ||
|
||
返回 | ||
:::::::::::: | ||
Tensor,数据类型与输入张量相同,输出的形状为 :math:`N \times (N-1) \div 2`。 | ||
|
||
代码示例 | ||
:::::::::::: | ||
|
||
COPY-FROM: paddle.pdist |