[Mlir-commits] [mlir] [mlir][python] fix PyDenseResourceElementsAttribute finalizer (PR #150561)
Christopher McGirr
llvmlistbot at llvm.org
Fri Jul 25 01:59:06 PDT 2025
================
@@ -1474,8 +1480,9 @@ class PyDenseResourceElementsAttribute
// The userData is a Py_buffer* that the deleter owns.
auto deleter = [](void *userData, const void *data, size_t size,
size_t align) {
- if (!Py_IsInitialized())
- Py_Initialize();
----------------
chrsmcgrr wrote:
Thanks for this! This seems to be what was causing issues on our end. It now works in python 3.11.
https://github.com/llvm/llvm-project/pull/150561
More information about the Mlir-commits
mailing list