From 41294cb5ba54def38c340d7486a11d09d240904a Mon Sep 17 00:00:00 2001 From: OccupyMars2025 <31559413+OccupyMars2025@users.noreply.github.com> Date: Thu, 18 Aug 2022 18:10:20 +0800 Subject: [PATCH] fix typo of pybind.cc (#45239) --- paddle/fluid/pybind/pybind.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/pybind/pybind.cc b/paddle/fluid/pybind/pybind.cc index 367ae4c3a88..425bdfea72a 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) { -- GitLab