We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ad471 commit c3e69eeCopy full SHA for c3e69ee
mlir/lib/Bindings/Python/IRAttributes.cpp
@@ -1389,7 +1389,7 @@ class PyDenseIntElementsAttribute
1389
// TODO: consider caching the type properties in the constructor to avoid
1390
// querying them on each element access.
1391
if (mlirTypeIsAIndex(type)) {
1392
- return mlirDenseElementsAttrGetIndexValue(*this, pos);
+ return nb::int_(mlirDenseElementsAttrGetIndexValue(*this, pos));
1393
}
1394
unsigned width = mlirIntegerTypeGetWidth(type);
1395
bool isUnsigned = mlirIntegerTypeIsUnsigned(type);
0 commit comments