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 1aa4f0b commit 35bd419Copy full SHA for 35bd419
mlir/lib/Interfaces/InferTypeOpInterface.cpp
@@ -191,6 +191,8 @@ LogicalResult mlir::detail::inferReturnTensorTypes(
191
return failure();
192
for (const auto &shapeAndType : retComponents) {
193
assert(shapeAndType.getAttribute() == nullptr && "attribute not supported");
194
+ assert(shapeAndType.getElementType() &&
195
+ "element type required to construct tensor");
196
if (shapeAndType.hasRank())
197
inferredReturnTypes.push_back(RankedTensorType::get(
198
shapeAndType.getDims(), shapeAndType.getElementType()));
0 commit comments