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 7e581d6 commit 745415dCopy full SHA for 745415d
mlir/lib/Bindings/Python/IRAttributes.cpp
@@ -1092,11 +1092,10 @@ class PyDenseElementsAttribute
1092
"when the type is not a shaped type.");
1093
}
1094
return *bulkLoadElementType;
1095
- } else {
1096
- MlirAttribute encodingAttr = mlirAttributeGetNull();
1097
- return mlirRankedTensorTypeGet(shape.size(), shape.data(),
1098
- *bulkLoadElementType, encodingAttr);
1099
+ MlirAttribute encodingAttr = mlirAttributeGetNull();
+ return mlirRankedTensorTypeGet(shape.size(), shape.data(),
+ *bulkLoadElementType, encodingAttr);
1100
1101
1102
static MlirAttribute getAttributeFromBuffer(
0 commit comments