Example did not have correct shapes. Also the operation
has no side effects (since it slaps a clean SSA tensor
around the data).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td | ||
---|---|---|
90–91 | I'd leave the values in the format 1.0, 2.0, 3.0 to help keep it clear how the result relates to the inputs. Even better would be to change the values to something else entirely (e.g., [4,5,6]) so that there's no possible confusion (similar to how the example uses 3x2 rather than 2x2 which would be ambiguous). |
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td | ||
---|---|---|
85–92 | Oh, I found the typo and but changed it to tensor<2xf64> in unpack revision ;-) I will accept your change since Wren made a good point that 2x2 can be ambiguous. |
I'd leave the values in the format 1.0, 2.0, 3.0 to help keep it clear how the result relates to the inputs. Even better would be to change the values to something else entirely (e.g., [4,5,6]) so that there's no possible confusion (similar to how the example uses 3x2 rather than 2x2 which would be ambiguous).