-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Refine ParallelExecutor English Doc for 2.0RC #27862
Conversation
Thanks for your contribution! |
@@ -205,11 +206,11 @@ def run(self, fetch_list, feed=None, feed_dict=None, return_numpy=True): | |||
fetch_list. | |||
|
|||
Args: | |||
fetch_list(list): This parameter represents the variables that need to be returned | |||
fetch_list(list): This parameter represents the tensors that need to be returned |
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.
tensors -> Tensors, the same below
import numpy | ||
import os | ||
|
||
use_cuda = True | ||
place = fluid.CUDAPlace(0) if use_cuda else fluid.CPUPlace() | ||
paddle.enable_static() | ||
place = paddle.CUDAPlace(0) if use_cuda else paddle.CPUPlace() | ||
|
||
# NOTE: If you use CPU to run the program, you need | ||
# to specify the CPU_NUM, otherwise, fluid will use |
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.
fluid -> 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.
LGTM
PR types
Others
PR changes
Docs
Describe
As the title, screenshot:
