[Mlir-commits] [mlir] [mlir][sparse] Change tests to use new syntax for ELL and slice (PR #67569)
Yinying Li
llvmlistbot at llvm.org
Wed Sep 27 13:33:49 PDT 2023
================
@@ -240,8 +240,9 @@ def SparseTensorEncodingAttr : SparseTensor_Attr<"SparseTensorEncoding",
// CSR slice (offset = 0, size = 4, stride = 1 on the first dimension;
// offset = 0, size = 8, and a dynamic stride on the second dimension).
#CSR_SLICE = #sparse_tensor.encoding<{
- lvlTypes = [ "dense", "compressed" ],
- dimSlices = [ (0, 4, 1), (0, 8, ?) ]
+ map = (d0 : #sparse_tensor<slice(0, 4, 1)>,
----------------
yinying-lisa-li wrote:
Yeah, it's a bit hard to comprehend. But for now, let's keep it this way and we could optimize it later once the migrate is done.
https://github.com/llvm/llvm-project/pull/67569
More information about the Mlir-commits
mailing list