converting cppyy returned objects to python objects

54 views Asked by At

I have a cpp method that returns a tuple of two dimensional vectors of double values (std::tuplestd::vector<std::vector<double>, ...>. When calling the method through cppyy, I am getting a weird wrapper object representing the tuple and nested vectors. These vectors eventually need to be turned into pytorch tensors, and for that to happen I need them to first be converted to python lists (or numpy arrays). How does one convert cppyy objects to pure python objects?

0

There are 0 answers