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

2.0 API: device_guard #3140

Merged
merged 1 commit into from
Jan 21, 2021
Merged

2.0 API: device_guard #3140

merged 1 commit into from
Jan 21, 2021

Conversation

zhangting2020
Copy link
Contributor

@zhangting2020 zhangting2020 commented Jan 18, 2021

2.0 API: device_guard
image

@paddle-bot-old
Copy link

Thanks for your contribution!


**注意:该API仅支持静态图模式**

.. py:function:: paddle.fluid.device_guard(device=None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里直接写成 paddle.device_guard 好一点~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Collaborator

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

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

LGTM

@TCChenlong TCChenlong merged commit 7ba0a90 into PaddlePaddle:develop Jan 21, 2021
RichardWooSJTU pushed a commit to RichardWooSJTU/docs that referenced this pull request Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants