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 9442427 commit c96df1eCopy full SHA for c96df1e
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
@@ -926,7 +926,7 @@ LogicalResult SparseTensorEncodingAttr::verifyEncoding(
926
}
927
if (getImplicitVal()) {
928
auto impVal = getImplicitVal();
929
- if (auto typedAttr = llvm::dyn_cast<TypedAttr>(getImplicitVal())) {
+ if (auto typedAttr = llvm::dyn_cast<TypedAttr>(impVal)) {
930
Type attrType = typedAttr.getType();
931
if (attrType != elementType) {
932
return emitError()
0 commit comments