-
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. 35 #5832
映射文档 No. 35 #5832
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5832.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
### [torch.acosh](https://pytorch.org/docs/1.13/generated/torch.acosh.html?highlight=acosh#torch.acosh) | ||
|
||
```python | ||
torch.arccos(input, |
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签名应该是 torch.acosh
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.acosh](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/acosh_cn.html#acos) | ||
|
||
```python | ||
paddle.acos(x, |
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签名应该是 paddle.acosh
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 | 备注 | | ||
| ------- | ------------ | ----------------------------------------------------- | | ||
| input | x | 表示输入的 Tensor ,仅参数名不一致。 | | ||
| out | - | 表示输出的 Tensor ,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.
十分感谢您的细心指出,已经修改。
### [torch.arccosh](https://pytorch.org/docs/1.13/generated/torch.arccosh.html?highlight=arccosh#torch.arccosh) | ||
|
||
```python | ||
torch.arccos(input, |
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.
十分感谢您的细心指出,已经修改。
### [paddle.acosh](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/acosh_cn.html#acos) | ||
|
||
```python | ||
paddle.acos(x, |
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.
十分感谢您的细心指出,已经修改。
| PyTorch | PaddlePaddle | 备注 | | ||
| ------- | ------------ | ----------------------------------------------------- | | ||
| input | x | 表示输入的 Tensor ,仅参数名不一致。 | | ||
| out | - | 表示输出的 Tensor ,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.
十分感谢您的细心指出,已经修改。
|
||
---- | ||
|
||
## |
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.
十分感谢您的细心指出,已经修改。
| map_location | - | 表示如何重新映射存储位置,PaddlePaddle 无此参数。 | | ||
| pickle_module | - | 表示用于 unpickling 元数据和对象的模块,PaddlePaddle 无此参数。 | | ||
| weights_only | - | 指示 unpickler 是否应限制为仅加载张量、原始类型和字典,PaddlePaddle 无此参数。 | | ||
| pickle_load_args | - | 传递给 pickle_module.load()和 pickle_mdule.Unpickler()的可选关键字参数,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.
不支持转写的参数直接在备注中说明 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.
十分感谢您的细心指出,已经修改。
```python | ||
# Pytorch 写法 | ||
x = torch.randint(10, (2, 2), requires_grad=True) | ||
|
||
# Paddle 写法 | ||
x = paddle.randint(10, [2, 2]) | ||
# 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.
十分感谢您的细心指出,已经修改。
x.stop_gradient = False | ||
``` | ||
|
||
#### |
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.
十分感谢您的细心指出,已经修改。
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
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
hi, @PikG09
|
完成对映射文件No.35的工作。