[Mlir-commits] [mlir] [MLIR] fix _f64ElementsAttr in ir.py (PR #91176)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon May 6 02:14:48 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Yuanqiang Liu (qingyunqu)
<details>
<summary>Changes</summary>
it seems a typo.
---
Full diff: https://github.com/llvm/llvm-project/pull/91176.diff
1 Files Affected:
- (modified) mlir/python/mlir/ir.py (+1-1)
``````````diff
diff --git a/mlir/python/mlir/ir.py b/mlir/python/mlir/ir.py
index eb7f035fec7c1f..80c965b2d0eb2c 100644
--- a/mlir/python/mlir/ir.py
+++ b/mlir/python/mlir/ir.py
@@ -274,7 +274,7 @@ def _memref_type_attr(x, context):
@register_attribute_builder("F64ElementsAttr")
def _f64ElementsAttr(x, context):
return DenseElementsAttr.get(
- np.array(x, dtype=np.int64),
+ np.array(x, dtype=np.float64),
type=F64Type.get(context=context),
context=context,
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/91176
More information about the Mlir-commits
mailing list