Describe the issue
Trying to diagnose symptoms of a memory leak in the python interface and wondering if it's because we're returning C++ memory here:
|
return self.predicted_errors_buffer; |
Note that pymatching returns the pybind array instead:
https://github.com/oscarhiggott/PyMatching/blob/c60642af5a5b342d633e2e2b818b9fdb9696e828/src/pymatching/sparse_blossom/driver/user_graph.pybind.cc#L200-L217
What version of the software are you using?
No response
How can the issue be reproduced?
No response
Describe the issue
Trying to diagnose symptoms of a memory leak in the python interface and wondering if it's because we're returning C++ memory here:
tesseract-decoder/src/tesseract.pybind.h
Line 234 in 1e0cd87
Note that pymatching returns the pybind array instead:
https://github.com/oscarhiggott/PyMatching/blob/c60642af5a5b342d633e2e2b818b9fdb9696e828/src/pymatching/sparse_blossom/driver/user_graph.pybind.cc#L200-L217
What version of the software are you using?
No response
How can the issue be reproduced?
No response