@@ -13,7 +13,7 @@ func.func @invalid_new_dense(%arg0: !llvm.ptr<i8>) -> tensor<32xf32> {
13
13
func.func @non_static_pack_ret (%values: tensor <6 xf64 >, %pos: tensor <2 xi32 >, %coordinates: tensor <6 x1 xi32 >)
14
14
-> tensor <?xf64 , #SparseVector > {
15
15
// expected-error@+1 {{the sparse-tensor must have static shape}}
16
- %0 = sparse_tensor.pack %values , %pos , %coordinates
16
+ %0 = sparse_tensor.assemble %values , %pos , %coordinates
17
17
: tensor <6 xf64 >, tensor <2 xi32 >, tensor <6 x1 xi32 > to tensor <?xf64 , #SparseVector >
18
18
return %0 : tensor <?xf64 , #SparseVector >
19
19
}
@@ -25,7 +25,7 @@ func.func @non_static_pack_ret(%values: tensor<6xf64>, %pos: tensor<2xi32>, %coo
25
25
func.func @invalid_pack_type (%values: tensor <6 xf64 >, %pos: tensor <2 xi32 >, %coordinates: tensor <6 x1 xi32 >)
26
26
-> tensor <100 xf32 , #SparseVector > {
27
27
// expected-error@+1 {{input/output element-types don't match}}
28
- %0 = sparse_tensor.pack %values , %pos , %coordinates
28
+ %0 = sparse_tensor.assemble %values , %pos , %coordinates
29
29
: tensor <6 xf64 >, tensor <2 xi32 >, tensor <6 x1 xi32 > to tensor <100 xf32 , #SparseVector >
30
30
return %0 : tensor <100 xf32 , #SparseVector >
31
31
}
@@ -37,7 +37,7 @@ func.func @invalid_pack_type(%values: tensor<6xf64>, %pos: tensor<2xi32>, %coord
37
37
func.func @invalid_pack_type (%values: tensor <6 xf64 >, %pos: tensor <2 xi32 >, %coordinates: tensor <6 x3 xi32 >)
38
38
-> tensor <100 x2 xf64 , #SparseVector > {
39
39
// expected-error@+1 {{input/output trailing COO level-ranks don't match}}
40
- %0 = sparse_tensor.pack %values , %pos , %coordinates
40
+ %0 = sparse_tensor.assemble %values , %pos , %coordinates
41
41
: tensor <6 xf64 >, tensor <2 xi32 >, tensor <6 x3 xi32 > to tensor <100 x2 xf64 , #SparseVector >
42
42
return %0 : tensor <100 x2 xf64 , #SparseVector >
43
43
}
@@ -49,7 +49,7 @@ func.func @invalid_pack_type(%values: tensor<6xf64>, %pos: tensor<2xi32>, %coord
49
49
func.func @invalid_pack_mis_position (%values: tensor <6 xf64 >, %coordinates: tensor <6 xi32 >)
50
50
-> tensor <2 x100 xf64 , #CSR > {
51
51
// expected-error@+1 {{inconsistent number of fields between input/output}}
52
- %0 = sparse_tensor.pack %values , %coordinates
52
+ %0 = sparse_tensor.assemble %values , %coordinates
53
53
: tensor <6 xf64 >, tensor <6 xi32 > to tensor <2 x100 xf64 , #CSR >
54
54
return %0 : tensor <2 x100 xf64 , #CSR >
55
55
}
@@ -60,7 +60,7 @@ func.func @invalid_pack_mis_position(%values: tensor<6xf64>, %coordinates: tenso
60
60
61
61
func.func @invalid_unpack_type (%sp: tensor <100 xf32 , #SparseVector >, %values: tensor <6 xf64 >, %pos: tensor <2 xi32 >, %coordinates: tensor <6 x1 xi32 >) {
62
62
// expected-error@+1 {{input/output element-types don't match}}
63
- %rv , %rp , %rc , %vl , %pl , %cl = sparse_tensor.unpack %sp : tensor <100 xf32 , #SparseVector >
63
+ %rv , %rp , %rc , %vl , %pl , %cl = sparse_tensor.disassemble %sp : tensor <100 xf32 , #SparseVector >
64
64
outs (%values , %pos , %coordinates : tensor <6 xf64 >, tensor <2 xi32 >, tensor <6 x1 xi32 >)
65
65
-> tensor <6 xf64 >, (tensor <2 xi32 >, tensor <6 x1 xi32 >), index , (index , index )
66
66
return
@@ -72,7 +72,7 @@ func.func @invalid_unpack_type(%sp: tensor<100xf32, #SparseVector>, %values: ten
72
72
73
73
func.func @invalid_unpack_type (%sp: tensor <100 x2 xf64 , #SparseVector >, %values: tensor <6 xf64 >, %pos: tensor <2 xi32 >, %coordinates: tensor <6 x3 xi32 >) {
74
74
// expected-error@+1 {{input/output trailing COO level-ranks don't match}}
75
- %rv , %rp , %rc , %vl , %pl , %cl = sparse_tensor.unpack %sp : tensor <100 x2 xf64 , #SparseVector >
75
+ %rv , %rp , %rc , %vl , %pl , %cl = sparse_tensor.disassemble %sp : tensor <100 x2 xf64 , #SparseVector >
76
76
outs (%values , %pos , %coordinates : tensor <6 xf64 >, tensor <2 xi32 >, tensor <6 x3 xi32 >)
77
77
-> tensor <6 xf64 >, (tensor <2 xi32 >, tensor <6 x3 xi32 >), index , (index , index )
78
78
return
@@ -84,7 +84,7 @@ func.func @invalid_unpack_type(%sp: tensor<100x2xf64, #SparseVector>, %values: t
84
84
85
85
func.func @invalid_unpack_mis_position (%sp: tensor <2 x100 xf64 , #CSR >, %values: tensor <6 xf64 >, %coordinates: tensor <6 xi32 >) {
86
86
// expected-error@+1 {{inconsistent number of fields between input/output}}
87
- %rv , %rc , %vl , %pl = sparse_tensor.unpack %sp : tensor <2 x100 xf64 , #CSR >
87
+ %rv , %rc , %vl , %pl = sparse_tensor.disassemble %sp : tensor <2 x100 xf64 , #CSR >
88
88
outs (%values , %coordinates : tensor <6 xf64 >, tensor <6 xi32 >)
89
89
-> tensor <6 xf64 >, (tensor <6 xi32 >), index , (index )
90
90
return
0 commit comments