singhanubhav2000
singhanubhav2000
Hi, I have a similar question. I have a usecase where I have implemented an API in python and it needs to return struct, vector or map to C++. Could...
Thank you this code is working for me. I made some changes to the code where in I wanted to pass a reference struct to embedded python function. `struct listABC...
Ohhh sorry missed that line in my previous comment. `PYBIND11_MAKE_OPAQUE(std::vector);` `PYBIND11_MODULE(_cc11binds, m) {` ` py::class_(m, "ABC")` ` .def(py::init())` ` ;` ` py::class_(m, "listABC")` ` .def_readwrite("name", &listABC::name_)` ` .def_readwrite("lst", &listABC::lst_)` `...
I have another doubt here. I was trying to make the program multithreaded. But I am getting a panic. All I did was starting multiple threads and doing gil_acquire &...
I think I got the problem. I was unnecessarily taking GIL lock before making the python call on the lines of boost::python. Will mark this issue as closed. Thanks for...
The code is similar but this is a different discussion. All I wanted was how to manage reference count for the scenario I mentioned above.
I have a problem where the code is panicing when I am making python call from C++. Its on the line of the above discussion: the python snippet is import...
Hi Guys, Any idea how to fix the issue? Any help would be greatly appreciated.
@wjakob , @vanossj , @jagerman Any idea on this panic? Please lemme know if you want me to add more info.