We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f6c0f commit 2505904Copy full SHA for 2505904
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
@@ -131,9 +131,10 @@ def SparseTensor_UnpackOp : SparseTensor_Op<"unpack", [Pure, SameVariadicResultS
131
// input COO format |1.1, 0.0, 0.0, 0.0|
132
// of 3x4 matrix |0.0, 0.0, 2.2, 3.3|
133
// |0.0, 0.0, 0.0, 0.0|
134
- %v, %p, %c, %v_len, %p_len, %c_len = sparse_tensor.unpack %sp : tensor<3x4xf64, #SparseVector>
135
- outs(%od, %op, %oi : tensor<3xf64>, tensor<2xindex>, tensor<3x2xindex>)
136
- -> tensor<3xf64>, (tensor<2xindex>, tensor<3x2xindex>), index, (index, index)
+ %v, %p, %c, %v_len, %p_len, %c_len =
+ sparse_tensor.unpack %sp : tensor<3x4xf64, #COO>
+ outs(%od, %op, %oi : tensor<3xf64>, tensor<2xindex>, tensor<3x2xindex>)
137
+ -> tensor<3xf64>, (tensor<2xindex>, tensor<3x2xindex>), index, (index, index)
138
// %v = arith.constant dense<[ 1.1, 2.2, 3.3 ]> : tensor<3xf64>
139
// %p = arith.constant dense<[ 0, 3 ]> : tensor<2xindex>
140
// %c = arith.constant dense<[[0,0], [1,2], [1,3]]> : tensor<3x2xindex>
0 commit comments