Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#17 from Liwb5/develop
Browse files Browse the repository at this point in the history
fix pybind of FeatureNode
  • Loading branch information
seemingwang committed Mar 28, 2021
2 parents 9a47d1d + 8826468 commit 2cb2eaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion paddle/fluid/pybind/fleet_py.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ void BindGraphNode(py::module* m) {
.def("get_feature", &GraphNode::get_feature);
}
void BindGraphPyFeatureNode(py::module* m) {
py::class_<FeatureNode>(*m, "FeatureNode").def(py::init<>());
py::class_<FeatureNode>(*m, "FeatureNode")
.def(py::init<>())
.def("get_id", &GraphNode::get_id)
.def("get_feature", &GraphNode::get_feature);
}

void BindGraphPyService(py::module* m) {
Expand Down

0 comments on commit 2cb2eaf

Please sign in to comment.