-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
How about implement another Run() in framework::Executor #7610
Comments
@Xreki: This idea seems like a reasonable approach to avoid the Resolver class. So I think I would prefer this approach. (Another comment, just comparing against the Resolver class design: I think steps 1 - 4 which are extra in this design should be relatively cheap in terms of computation. So calling run again and again, in case of inference in a streaming fashion, should be also fine. ) |
Can you give some detail about running steps 1-4 in a streaming fashion? |
I just was saying that if we call the
|
OKay. It seems an optimization method. I add it to the TODO list in inference framework project to remark it. |
Suggested by @qingqing01 , we may implement another
Run()
in paddle/framework/executor.h which do the same things as theRun()
of PythonExecutor
.Paddle/python/paddle/v2/fluid/executor.py
Lines 125 to 132 in 144854d
The interface maybe like and will do following things:
So that we can directly
Run
both in Python API and C++ API.The text was updated successfully, but these errors were encountered: