From cded24768cbe8f540bfc0a85467ffd32bcfe7b44 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Wed, 9 Jan 2019 23:09:33 +0800 Subject: [PATCH] Remove shared_ptr holder for VarBase test=develop --- paddle/fluid/pybind/pybind.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/fluid/pybind/pybind.cc b/paddle/fluid/pybind/pybind.cc index 7f15abb1b..aee530036 100644 --- a/paddle/fluid/pybind/pybind.cc +++ b/paddle/fluid/pybind/pybind.cc @@ -125,8 +125,7 @@ PYBIND11_MODULE(core, m) { m.add_object("_cleanup", py::capsule([]() { ScopePool::Instance().Clear(); })); - py::class_>( - m, "VarBase", R"DOC()DOC") + py::class_(m, "VarBase", R"DOC()DOC") // .def(py::init<>()) .def(py::init(), py::arg("stop_gradient") = false) .def("_run_backward", -- GitLab