diff --git a/paddle/fluid/pybind/pybind.cc b/paddle/fluid/pybind/pybind.cc index 367ae4c3a88b0cfe78f54ba82be8352a35ef0f3d..425bdfea72a9745a186ba49e1560a39fc3dc438c 100644 --- a/paddle/fluid/pybind/pybind.cc +++ b/paddle/fluid/pybind/pybind.cc @@ -428,7 +428,7 @@ static std::vector inline GetNameList( return vec_res; } -static void inline CreateVariableIfNotExit( +static void inline CreateVariableIfNotExist( const py::handle &py_handle, const framework::Scope &scope, const framework::Executor *exe = nullptr) { @@ -629,7 +629,7 @@ PYBIND11_MODULE(core_noavx, m) { [](const py::handle &vec_var_list, const Scope &scope, const Executor *executor) { - CreateVariableIfNotExit(vec_var_list, scope, executor); + CreateVariableIfNotExist(vec_var_list, scope, executor); }); m.def("save_op_version_info", [](framework::ProgramDesc &desc) {