-
Notifications
You must be signed in to change notification settings - Fork 22
lifetime issue in pybind #192
Copy link
Copy link
Open
Description
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
| 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels