From 8826468545ea98cf031bc8de8fc56332c5d9f30c Mon Sep 17 00:00:00 2001 From: liweibin02 Date: Sun, 28 Mar 2021 09:26:48 +0800 Subject: [PATCH] fix pybind of FeatureNode --- paddle/fluid/pybind/fleet_py.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/pybind/fleet_py.cc b/paddle/fluid/pybind/fleet_py.cc index 97949c48ce908..774cae8cb2561 100644 --- a/paddle/fluid/pybind/fleet_py.cc +++ b/paddle/fluid/pybind/fleet_py.cc @@ -166,7 +166,10 @@ void BindGraphNode(py::module* m) { .def("get_feature", &GraphNode::get_feature); } void BindGraphPyFeatureNode(py::module* m) { - py::class_(*m, "FeatureNode").def(py::init<>()); + py::class_(*m, "FeatureNode") + .def(py::init<>()) + .def("get_id", &GraphNode::get_id) + .def("get_feature", &GraphNode::get_feature); } void BindGraphPyService(py::module* m) {