Skip to content

Commit

Permalink
[mlir][sparse] Fix a problem introduced by the PR for reading complex…
Browse files Browse the repository at this point in the history
… number.

The problem is in function isValid.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D127349
  • Loading branch information
bixia1 committed Jun 8, 2022
1 parent 4bcfc41 commit ff96d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
Expand Up @@ -1172,7 +1172,7 @@ class SparseTensorFile final {

ValueKind getValueKind() const { return valueKind_; }

bool isValid() const { return valueKind_ != ValueKind::kUndefined; }
bool isValid() const { return valueKind_ != ValueKind::kInvalid; }

/// Gets the MME "pattern" property setting. Is only valid after
/// parsing the header.
Expand Down

0 comments on commit ff96d43

Please sign in to comment.