-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[mlir] [sparse_tensor] -lower-sparse-ops-to-foreach crashes in decltype(auto) llvm::cast(const From &) [To = mlir::RankedTensorType, From = mlir::Type]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed. #107807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Certainly, you're correct. However, in this case, I think that the compiler should report an error rather than crashing. |
llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp Lines 1137 to 1144 in a4586bd
getSparseTensorType should be replaced with tryGetSparseTensorType .
|
@llvm/issue-subscribers-mlir-sparse Author: None (axeabc)
git version: 0f50330
system: reproduce with: a.mlir:
stack trace:
|
git version: 0f50330
system:
Ubuntu 18.04.6 LTS
reproduce with:
mlir-opt -lower-sparse-ops-to-foreach a.mlir
a.mlir:
stack trace:
The text was updated successfully, but these errors were encountered: