Skip to content
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. 402-408 #6011

Merged
merged 2 commits into from
Jul 18, 2023
Merged

映射文档 No. 402-408 #6011

merged 2 commits into from
Jul 18, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Jul 10, 2023

PaddlePaddle/PaConvert#112

402 torch.HalfTensor
403 torch.cuda.HalfTensor
404 torch.ShortTensor
405 torch.cuda.ShortTensor
406 torch.cuda.ByteTensor
407 torch.DoubleTensor
408 torch.cuda.DoubleTensor

@paddle-bot
Copy link

paddle-bot bot commented Jul 10, 2023

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6011.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改一下stop_gradient的地方

### [paddle.to_tensor](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/to_tensor_cn.html#to-tensor)

```python
paddle.to_tensor(data, dtype=paddle.float64, place="cpu", stop_gradient=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stop_gradient默认的就是True,无需特别设置,其他也一样

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改去掉stop_gradient

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jul 11, 2023
Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhwesky2010 zhwesky2010 merged commit 3c1e4a1 into PaddlePaddle:develop Jul 18, 2023
1 check passed
@co63oc co63oc deleted the doc0710 branch July 25, 2023 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants