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

Update docs #7081

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open

Update docs #7081

wants to merge 13 commits into from

Conversation

Xuxuanang
Copy link
Contributor

Copy link

paddle-bot bot commented Mar 6, 2025

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

x = torch.cuda.get_rng_state(device='cuda:0')

# Paddle 写法,返回 GeneratorState 对象
x = paddle.get_cuda_rng_state()[0]
Copy link
Collaborator

Choose a reason for hiding this comment

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

如果device无输入的话,应该是取第一个值吗?paddle.get_cuda_rng_state()[0]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这个在Matcher部分又重新修改了一下

@zhwesky2010
Copy link
Collaborator

上面的改了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants