You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#67760
`levelCheckRank` ensures that the tensors for tosa operations are not
unranked
During tosa validation in `levelCheckRank`, we were trying to get the
rank of a tensor without checking if it is ranked or unranked, which
leads to an `assert` error. I see two ways to fix this:
- Only check `type.getRank() > tosa_level.MAX_RANK` if the tensor is
ranked, and then proceed as usual.
(like `if (type.hasRank() && type.getRank() > tosa_level.MAX_RANK)` , OR
- Throw an error for unranked tensors as result.
git version: 8c12707
system: Ubuntu 20.04.6 LTS (Focal Fossa)
reproduced with: mlir-opt --tosa-validate a.mlir
a.mlir:
trace:
The text was updated successfully, but these errors were encountered: