提交 82a8e080 编写于 作者: Q qiaolongfei

update comment of executor.run

上级 5dbb71b2
...@@ -228,16 +228,22 @@ class Executor(object): ...@@ -228,16 +228,22 @@ class Executor(object):
scope=None, scope=None,
return_numpy=True, return_numpy=True,
use_program_cache=False): use_program_cache=False):
""" """ Run program by this Executor. Feed data by feed map, fetch result by fetch_list.
:param program: the program that need to run
:param feed: feed variable list Python executor takes a program, add feed operators and fetch operators to this program according
:param fetch_list: fetch variable list to feed map and fetch_list. Feed map provides input data for the program. fetch_list provides
:param feed_var_name: feed_var_name default to 'feed' the variables that user want to get after program run. Note: the executor will run all
:param fetch_var_name: fetch_var_name default to 'fetch' operators in the program but not only the operators dependent by the fetch_list
:param scope: the scope used to run this program, you can switch it to different scope.
:param return_numpy: convert the fetched tensor to numpy :param program: the program that need to run, if not provied, then default_main_program will be used.
:param feed: feed variable map, e.g. {"image": ImageData, "label": LableData}
:param fetch_list: a list of variable that user want to get, run will return them according to this list.
:param feed_var_name: the name for the input variable of feed Operator.
:param fetch_var_name: the name for the output variable of feed Operator.
:param scope: the scope used to run this program, you can switch it to different scope. default is global_scope
:param return_numpy: if convert the fetched tensor to numpy
:param use_program_cache: set use_program_cache to true if program not changed compare to the last step. :param use_program_cache: set use_program_cache to true if program not changed compare to the last step.
:return: :return: result according to fetch_list.
""" """
if feed is None: if feed is None:
feed = {} feed = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册