|
|
@ -502,9 +502,7 @@ All parameter, weight, gradient are variables in Paddle.
|
|
|
|
|
|
|
|
|
|
|
|
py::class_<framework::Executor>(m, "Executor")
|
|
|
|
py::class_<framework::Executor>(m, "Executor")
|
|
|
|
.def(py::init<const platform::Place &>())
|
|
|
|
.def(py::init<const platform::Place &>())
|
|
|
|
#ifdef PADDLE_WITH_DISTRIBUTE
|
|
|
|
.def("close", &Executor::Close)
|
|
|
|
.def("complete", &Executor::Complete)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
.def("run", [](Executor &self, const ProgramDesc &prog, Scope *scope,
|
|
|
|
.def("run", [](Executor &self, const ProgramDesc &prog, Scope *scope,
|
|
|
|
int block_id, bool create_local_scope, bool create_vars) {
|
|
|
|
int block_id, bool create_local_scope, bool create_vars) {
|
|
|
|
pybind11::gil_scoped_release release;
|
|
|
|
pybind11::gil_scoped_release release;
|
|
|
|