-
Notifications
You must be signed in to change notification settings - Fork 724
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
映射文档 No. 94/95/96 #6053
映射文档 No. 94/95/96 #6053
Conversation
|
||
|
||
### 转写示例 | ||
|
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.
这个是转写的哪个参数?需要写明
对于 torch 参数更多
的情况,只需要转写多出的参数,请详看模板要求
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.
Done.
请问像paddle.nanquantile 里的参数 q 支持使用list 与 torch.nanquantile 里的参数 q 支持使用 tensor 这种的有转换的 matcher 吗?
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支持的内容,只需关注torch支持的内容,paddle是否支持
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.
Done. 请问像paddle.nanquantile 里的参数 q 支持使用list 与 torch.nanquantile 里的参数 q 支持使用 tensor 这种的有转换的 matcher 吗?
这种暂无转写方式,可以在文档中写出,什么情况下 暂无转写方式
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.
@Atlantisming 你指的是torch.nanquantile 里的参数 q 支持使用 1D Tensor的用法吗?这种可能paddle目前不支持,直接写明torch的q支持哪些类型,paddle的q支持哪些类型,然后什么情况下 暂无转写方式
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.
Done.
torch.Tensor.polygamma(n) | ||
``` | ||
|
||
### [paddle.Tensor.nanquantile](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/polygamma_cn.html#polygamma) |
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.
这个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.
Done.
### [paddle.Tensor.nanquantile](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/polygamma_cn.html#polygamma) | ||
|
||
```python | ||
paddle.Tensor.nanquantile(n) |
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.
这个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.
Done.
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
|--------|-------------|----------------| | ||
| mode | some | 表示 QR 分解的行为。 需进行转写。 | |
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.
需要进行转写。
| PyTorch | PaddlePaddle | 备注 | | ||
|--------|-------------|----------------| | ||
| mode | some | 表示 QR 分解的行为。 需进行转写。 | | ||
|
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.
上面的映射,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.
Done.
@Atlantisming 下面那些地方的问题请修改一下 |
请问都修改完了么 |
您好,修改完了 |
| keepdim | keepdim | 是否在输出 Tensor 中保留输入的维度,仅参数名不一致。 | | ||
| interpolation | - | 指定当所需分位数位于两个数据点之间时使用的插值方法,Paddle 无此参数,暂无转写方式。 | | ||
| keepdim | keepdim | 是否在输出 Tensor 中保留输入的维度。 | | ||
| interpolation | - | 指定当所需分位数位于两个数据点之间时使用的插值方法,Paddle 无此功能,暂无转写方式。 | |
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 无此参数
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.
Done.
|
||
|
||
### 转写示例 | ||
|
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.
@Atlantisming 你指的是torch.nanquantile 里的参数 q 支持使用 1D Tensor的用法吗?这种可能paddle目前不支持,直接写明torch的q支持哪些类型,paddle的q支持哪些类型,然后什么情况下 暂无转写方式
### 转写示例 | ||
|
||
```python | ||
# Pytorch 写法 |
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,0 +1,42 @@ | |||
## [ torch 参数更多 ] torch.Tensor.qr | |||
|
|||
### [torch.Tensor.qr](https://pytorch.org/docs/stable/generated/torch.linalg.qr.html?highlight=qr#torch.linalg.qr) |
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.
这个链接能找到Tensor 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.
这个有链接,内容是跳转到torch.qr
torch.Tensor.qr(some=True) | ||
``` | ||
|
||
### [paddle.Tensor.qr](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/linalg/qr_cn.html#qr) |
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.
这个链接能找到Tensor 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.
这个没找到0 0
@@ -0,0 +1,21 @@ | |||
## [ 参数完全一致 ] torch.Tensor.polygamma | |||
|
|||
### [torch.Tensor.polygamma](https://pytorch.org/docs/stable/generated/torch.polygamma.html?highlight=polygamma#torch.polygamma) |
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.
这个链接能找到Tensor API的链接吗
torch.Tensor.polygamma(n) | ||
``` | ||
|
||
### [paddle.Tensor.polygamma](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/polygamma_cn.html#polygamma) |
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.
这个链接能找到Tensor 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.
没找到 paddle 对应 Tensor API 链接。
q, r = x.qr(some=False) | ||
|
||
# Paddle 写法 | ||
x = paddle.to_tensor([[1., 2., 3.],[4., 5., 6.,]]) |
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.
x可以删掉,这里用伪代码示例思路即可,不用必须能跑出结果
@@ -0,0 +1,41 @@ | |||
## [ torch 参数更多 ] torch.Tensor.qr |
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.
已修改 😖
@@ -0,0 +1,41 @@ | |||
## [ torch 参数不一致 ] torch.Tensor.qr |
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.
没这个分类,请参考模板中的7种分类
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.
抱歉!已修改!
| interpolation | - | 指定当所需分位数位于两个数据点之间时使用的插值方法,Paddle 无此参数,暂无转写方式。 | | ||
| PyTorch | PaddlePaddle | 备注 | | ||
| ------------- | ------------ |--------------------------------------------------------------------------| | ||
| q | q | 一个 [0, 1] 范围内的分位数值的标量。PyTorch 支持 q 为一维张量,PaddlePaddle 支持 q 为一维列表,暂无转写方式。 | |
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.
不是所有的情况都暂无转写方式的。
这个需要写清楚:torch的q支持哪些类型,paddle的q支持哪些类型,当torch的q为1D 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.
Done.
paddle.Tensor.qr(mode='reduced') | ||
``` | ||
|
||
两者功能一致,仅参数名不一致,具体如下: |
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.
已修改,麻烦再看下
| interpolation | - | 指定当所需分位数位于两个数据点之间时使用的插值方法,Paddle 无此参数,暂无转写方式。 | | ||
| PyTorch | PaddlePaddle | 备注 | | ||
| ------------- | ------------ |-------------------------------------------------------------------------------------------------------------------------------| | ||
| q | q | 一个 [0, 1] 范围内的分位数值的标量。当 q 为标量时,参数完全一致。当 q 为一维向量时,PyTorch 支持 q 为 1D Tensor,PaddlePaddle 支持 q 为一维列表。当 torch 的 q 为 1D 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.
q为1D Tensor时,转写方式 将其转为一个list不就可以吗
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.
q为1D Tensor时,转写方式 将其转为一个list不就可以吗
x.nanquantile(q) | ||
|
||
# Paddle | ||
x = paddle.tensor([0., 1., 2., 3.], dtype='float64') |
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.
x你可以不用写,写伪代码即可,不用写这么多
paddle的示例,调用了torch.tensor
?
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
|---------|--------------|----------------------------------------------------------------| | ||
| some | mode | 表示 QR 分解的行为。PyTorch 支持布尔类型的输入,PaddlePaddle 支持字符串类型的输入。 需要进行转写。 | |
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.
描述改成:
两者使用方式不一致,需要转写。
Done. 抱歉改了这么多次。
PaddlePaddle/PaConvert#112
PaddlePaddle/PaConvert#193
94 torch.tensor.polygamma 已添加对应文档
95 torch.tensor.qr 已添加对应文档
96 torch.tensor.nanquantile 原文档存在,添加了转写示例