[Mlir-commits] [mlir] [mlir][python] Add bindings for mlirDenseElementsAttrGet (PR #91389)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri May 17 09:23:22 PDT 2024
pranavm-nvidia wrote:
> Why someone would want this? Creating attributes is rather expensive. Should we rather accept python `int` and `float` lists plus a type?
That would work too, but I think the C API `mlirDenseElementsAttrGet` would still require us to construct each attribute individually. Should we add a new C API as well?
Out of curiosity, what was the intended purpose of `mlirDenseElementsAttrGet` if creating attributes is expensive? Or is that only true in Python?
https://github.com/llvm/llvm-project/pull/91389
More information about the Mlir-commits
mailing list