This diff adds an integration test which does element wise multiplication for two sparse 3-d tensors of size 3x3x5
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for the quick review. I have addressed your comments.
| mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_tensor_mul.mlir | ||
|---|---|---|
| 105 | Aah. I was planning on adding another test related to tensor ops (maybe addition). | |
| mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_tensor_mul.mlir | ||
|---|---|---|
| 99 | I am not completely sure if we have to do this (as we were doing in dump) and whether we should dealloc m1 as well. | |
| mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_tensor_mul.mlir | ||
|---|---|---|
| 99 | Always run with sanitizer on before submitting. ... -DLLVM_USE_SANITIZER=Address \ -DMLIR_INCLUDE_INTEGRATION_TESTS=ON \ ... | |
| mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_tensor_mul.mlir | ||
|---|---|---|
| 99 | and the answer is, yes, at the moment, but there is a pending change by Matthias which will have to change this (since we are migrating to the much better OneShot bufferization) | |
| mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_tensor_mul.mlir | ||
|---|---|---|
| 99 | Got it. I ran with the sanitizer and it showed no errors. | |
| mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_tensor_mul.mlir | ||
|---|---|---|
| 95 | why not use default_value here too, and get rid of the %d0 | |
| 99 | Make sure to rebase with main and retest sanitizer test run, since the OneShot bufferization just went in. After that, ship it! | |
line up arga/argb?