Replies: 1 comment
-
In addition, the help on the function is here:
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
When I used pybind11 to encapsulate
goptimization.cpp
as a static library that Python can call, the static library was successfully generated, but when I call it by python scripttest.py
, the following error occurred:here is my
test.py
:here is my cpp file:
and my
my_optimization
function is declared:Meanwhile, Multiple custom classes are used internally in the function
my_optimization
.So, how to deal with it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions