pybind11 about the class inherit and templates #4523
Unanswered
yeshenyong
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
the cpp code
pipeline->registerGElement<MyNode1>(&c, {a}, "nodeC");
class MyNode1 : public GNode { // it can be MyNode2 or MyNode3
public:
};
the python code(I hope can do this)
class MyNode(GNode):
pipeline.registerGElement(MyNode, c, a, "nodeC")
I hope I can inherit GNode operators through Python And sign up the pipeline。But if I look at the documentation, it doesn't seem to support runtime Python templates
Beta Was this translation helpful? Give feedback.
All reactions