|
47 | 47 | // CHECK: }
|
48 | 48 | // CHECK: %[[T:.*]] = bufferization.to_tensor %[[M]] : memref<13xi32>
|
49 | 49 | // CHECK: return %[[T]] : tensor<13xi32>
|
50 |
| -func @sparse_convert_1d(%arg0: tensor<13xi32, #SparseVector>) -> tensor<13xi32> { |
| 50 | +func.func @sparse_convert_1d(%arg0: tensor<13xi32, #SparseVector>) -> tensor<13xi32> { |
51 | 51 | %0 = sparse_tensor.convert %arg0 : tensor<13xi32, #SparseVector> to tensor<13xi32>
|
52 | 52 | return %0 : tensor<13xi32>
|
53 | 53 | }
|
@@ -86,7 +86,7 @@ func @sparse_convert_1d(%arg0: tensor<13xi32, #SparseVector>) -> tensor<13xi32>
|
86 | 86 | // CHECK: }
|
87 | 87 | // CHECK: %[[T:.*]] = bufferization.to_tensor %[[M]] : memref<?xi32>
|
88 | 88 | // CHECK: return %[[T]] : tensor<?xi32>
|
89 |
| -func @sparse_convert_1d_dyn(%arg0: tensor<?xi32, #SparseVector>) -> tensor<?xi32> { |
| 89 | +func.func @sparse_convert_1d_dyn(%arg0: tensor<?xi32, #SparseVector>) -> tensor<?xi32> { |
90 | 90 | %0 = sparse_tensor.convert %arg0 : tensor<?xi32, #SparseVector> to tensor<?xi32>
|
91 | 91 | return %0 : tensor<?xi32>
|
92 | 92 | }
|
@@ -130,7 +130,7 @@ func @sparse_convert_1d_dyn(%arg0: tensor<?xi32, #SparseVector>) -> tensor<?xi32
|
130 | 130 | // CHECK: }
|
131 | 131 | // CHECK: %[[T:.*]] = bufferization.to_tensor %[[M]] : memref<2x4xf64>
|
132 | 132 | // CHECK: return %[[T]] : tensor<2x4xf64>
|
133 |
| -func @sparse_convert_2d(%arg0: tensor<2x4xf64, #SparseMatrix>) -> tensor<2x4xf64> { |
| 133 | +func.func @sparse_convert_2d(%arg0: tensor<2x4xf64, #SparseMatrix>) -> tensor<2x4xf64> { |
134 | 134 | %0 = sparse_tensor.convert %arg0 : tensor<2x4xf64, #SparseMatrix> to tensor<2x4xf64>
|
135 | 135 | return %0 : tensor<2x4xf64>
|
136 | 136 | }
|
@@ -174,7 +174,7 @@ func @sparse_convert_2d(%arg0: tensor<2x4xf64, #SparseMatrix>) -> tensor<2x4xf64
|
174 | 174 | // CHECK: }
|
175 | 175 | // CHECK: %[[T:.*]] = bufferization.to_tensor %[[M]] : memref<?x4xf64>
|
176 | 176 | // CHECK: return %[[T]] : tensor<?x4xf64>
|
177 |
| -func @sparse_convert_2d_dyn0(%arg0: tensor<?x4xf64, #SparseMatrix>) -> tensor<?x4xf64> { |
| 177 | +func.func @sparse_convert_2d_dyn0(%arg0: tensor<?x4xf64, #SparseMatrix>) -> tensor<?x4xf64> { |
178 | 178 | %0 = sparse_tensor.convert %arg0 : tensor<?x4xf64, #SparseMatrix> to tensor<?x4xf64>
|
179 | 179 | return %0 : tensor<?x4xf64>
|
180 | 180 | }
|
@@ -218,7 +218,7 @@ func @sparse_convert_2d_dyn0(%arg0: tensor<?x4xf64, #SparseMatrix>) -> tensor<?x
|
218 | 218 | // CHECK: }
|
219 | 219 | // CHECK: %[[T:.*]] = bufferization.to_tensor %[[M]] : memref<2x?xf64>
|
220 | 220 | // CHECK: return %[[T]] : tensor<2x?xf64>
|
221 |
| -func @sparse_convert_2d_dyn1(%arg0: tensor<2x?xf64, #SparseMatrix>) -> tensor<2x?xf64> { |
| 221 | +func.func @sparse_convert_2d_dyn1(%arg0: tensor<2x?xf64, #SparseMatrix>) -> tensor<2x?xf64> { |
222 | 222 | %0 = sparse_tensor.convert %arg0 : tensor<2x?xf64, #SparseMatrix> to tensor<2x?xf64>
|
223 | 223 | return %0 : tensor<2x?xf64>
|
224 | 224 | }
|
@@ -262,7 +262,7 @@ func @sparse_convert_2d_dyn1(%arg0: tensor<2x?xf64, #SparseMatrix>) -> tensor<2x
|
262 | 262 | // CHECK: }
|
263 | 263 | // CHECK: %[[T:.*]] = bufferization.to_tensor %[[M]] : memref<?x?xf64>
|
264 | 264 | // CHECK: return %[[T]] : tensor<?x?xf64>
|
265 |
| -func @sparse_convert_2d_dyn2(%arg0: tensor<?x?xf64, #SparseMatrix>) -> tensor<?x?xf64> { |
| 265 | +func.func @sparse_convert_2d_dyn2(%arg0: tensor<?x?xf64, #SparseMatrix>) -> tensor<?x?xf64> { |
266 | 266 | %0 = sparse_tensor.convert %arg0 : tensor<?x?xf64, #SparseMatrix> to tensor<?x?xf64>
|
267 | 267 | return %0 : tensor<?x?xf64>
|
268 | 268 | }
|
@@ -311,7 +311,7 @@ func @sparse_convert_2d_dyn2(%arg0: tensor<?x?xf64, #SparseMatrix>) -> tensor<?x
|
311 | 311 | // CHECK: }
|
312 | 312 | // CHECK: %[[T:.*]] = bufferization.to_tensor %[[M]] : memref<2x3x4xf64>
|
313 | 313 | // CHECK: return %[[T]] : tensor<2x3x4xf64>
|
314 |
| -func @sparse_convert_3d(%arg0: tensor<2x3x4xf64, #SparseTensor>) -> tensor<2x3x4xf64> { |
| 314 | +func.func @sparse_convert_3d(%arg0: tensor<2x3x4xf64, #SparseTensor>) -> tensor<2x3x4xf64> { |
315 | 315 | %0 = sparse_tensor.convert %arg0 : tensor<2x3x4xf64, #SparseTensor> to tensor<2x3x4xf64>
|
316 | 316 | return %0 : tensor<2x3x4xf64>
|
317 | 317 | }
|
0 commit comments