[Mlir-commits] [mlir] [mlir][python] Add bindings for mlirDenseElementsAttrGet (PR #91389)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed May 8 09:41:02 PDT 2024


pranavm-nvidia wrote:

> Just curious, is the idea that you would do something like?
> 
> ```
> attrs = [FloatAttr.get(BF16Type.get(), 1.0), FloatAttr.get(BF16Type.get(), 2.0)]
> ```
> 
> ?

Yes, exactly, and then you could have `DenseElementsAttr.get(attrs)`. 

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


More information about the Mlir-commits mailing list