Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
That was fast! Thanks Bixia.
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp | ||
---|---|---|
514 | update comment general/symmetric | |
518 | I found this very hard to read, because strcmp returns 0 on failure here. Do you see chance to make this more readable? | |
622 | Add a note that for now we chose to deal with symmetric matrices by fully constructing them. | |
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum.mlir | ||
7 | it is a bit strange to just change the input matrix of an existing test for this I assume you picked the values such that the outcome is the same? If you don't want to add a whole new file just make sure you change both L7 and L21. |
mlir/test/Integration/data/test_symmetric.mtx | ||
---|---|---|
14 | it does not matter of course, but Matrix Market uses a lower triangular or upper triangular matrix consistently for symmetric matrices. This is a bit bad example in the sense that we have a_14 in the upper triangular and a_52 in the lower trianguar. Please pick a consistent region for the values |
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp | ||
---|---|---|
518 | Would introduce a lambda like this help? not_equal = [](const char* src, const* expected) {return strcmp(toLower(src), expected);} not_euqal(format, "coordinate") || not_equal(field, "real") || (not_equal(symmetry, "general") && !(*is_symmetric))) { |
mlir/lib/ExecutionEngine/SparseTensorUtils.cpp | ||
---|---|---|
518 | Let's leave as is. |
update comment general/symmetric