[Mlir-commits] [mlir] ff96d43 - [mlir][sparse] Fix a problem introduced by the PR for reading complex number.

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jun 8 15:03:01 PDT 2022


Author: bixia1
Date: 2022-06-08T15:01:50-07:00
New Revision: ff96d434d0cdc9ba5b367c9776f6dfd95de70a81

URL: https://github.com/llvm/llvm-project/commit/ff96d434d0cdc9ba5b367c9776f6dfd95de70a81
DIFF: https://github.com/llvm/llvm-project/commit/ff96d434d0cdc9ba5b367c9776f6dfd95de70a81.diff

LOG: [mlir][sparse] Fix a problem introduced by the PR for reading complex number.

The problem is in function isValid.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D127349

Added: 
    

Modified: 
    mlir/lib/ExecutionEngine/SparseTensorUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
index a8ade3cba94ea..266ad5db74b68 100644
--- a/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
+++ b/mlir/lib/ExecutionEngine/SparseTensorUtils.cpp
@@ -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.


        


More information about the Mlir-commits mailing list