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 7ebcd88 commit f1a7e50Copy full SHA for f1a7e50
mlir/lib/Conversion/ArithmeticToSPIRV/ArithmeticToSPIRV.cpp
@@ -294,10 +294,11 @@ LogicalResult ConstantCompositeOpPattern::matchAndRewrite(
294
return failure();
295
296
auto dstElementsAttr = constOp.getValue().dyn_cast<DenseElementsAttr>();
297
- ShapedType dstAttrType = dstElementsAttr.getType();
298
if (!dstElementsAttr)
299
300
+ ShapedType dstAttrType = dstElementsAttr.getType();
301
+
302
// If the composite type has more than one dimensions, perform linearization.
303
if (srcType.getRank() > 1) {
304
if (srcType.isa<RankedTensorType>()) {
0 commit comments