[Mlir-commits] [mlir] [MLIR, Python] Support converting boolean numpy arrays to and from mlir attributes (PR #113064)

Kasper Nielsen llvmlistbot at llvm.org
Wed Oct 23 13:22:10 PDT 2024


================
@@ -14,6 +14,7 @@
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/DataTypes.h"
 
+#include <pybind11/numpy.h>
----------------
kasper0406 wrote:

It is used in `IRAttributes.cpp` now to use the numpy bitpacking functions. I didn't include it directly in `IRAttributes.cpp`, because it seems like all `pybind`` includes have been collected in `PybindUtils.h`

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


More information about the Mlir-commits mailing list