You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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. )
I just was saying that if we call the Run() function again and again:
in the previous design with ProgramResolver and the current design, the only repetitive part that i see is steps 1 to 4 in the above function.
So I think this should be fine since these steps are not costly..
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: