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 b9527a0 commit e19fc6bCopy full SHA for e19fc6b
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
@@ -921,7 +921,7 @@ LogicalResult SparseTensorEncodingAttr::verifyEncoding(
921
}
922
if (getImplicitVal()) {
923
auto impVal = getImplicitVal();
924
- if (auto typedAttr = llvm::dyn_cast<TypedAttr>(getImplicitVal())) {
+ if (auto typedAttr = llvm::dyn_cast<TypedAttr>(impVal)) {
925
Type attrType = typedAttr.getType();
926
if (attrType != elementType) {
927
return emitError()
0 commit comments