[Mlir-commits] [llvm] [mlir] [mlir python] Port Python core code to nanobind. (PR #118583)

Peter Hawkins llvmlistbot at llvm.org
Mon Dec 16 08:27:10 PST 2024


hawkinsp wrote:

The most recent commit push fixes two problems:
* we would leak `Py_buffer` objects when importing a `nb_buffer_info`, because we didn't ever call `PyBuffer_Release`.
* there was a use-after-move in `nb_buffer_info` when exporting a buffer because the shape and strides pointed to the contents of a `SmallVector` which was then moved.

https://github.com/llvm/llvm-project/pull/118583


More information about the Mlir-commits mailing list