sightly better bufferization
minor fixes
This commit is contained in:
@@ -79,9 +79,9 @@ LogicalResult PimEmptyManyOp::verify() {
|
||||
return emitError("must produce at least one output");
|
||||
|
||||
Type firstType = getOutputs().front().getType();
|
||||
auto firstTensorType = dyn_cast<RankedTensorType>(firstType);
|
||||
if (!firstTensorType)
|
||||
return emitError("outputs must all be ranked tensor types");
|
||||
auto firstShapedType = dyn_cast<ShapedType>(firstType);
|
||||
if (!firstShapedType || !firstShapedType.hasRank())
|
||||
return emitError("outputs must all be ranked shaped types");
|
||||
|
||||
for (Value output : getOutputs().drop_front())
|
||||
if (output.getType() != firstType)
|
||||
|
||||
Reference in New Issue
Block a user