Commit 421adbb
Frontend update, demo scripts. (#10)
* Format and Buffer data structure (#1)
* [SparseTIR] Constructors and Python Interface for `Axis` and `SparseBuffer` (#2)
* add methods for Object
* axis constructors
* methods for SparseBuffer
* put into registry
* python interface
* [CherryPick][Intrinsic] lower_bound and upper_bound for binary search in Sparse TIR. (apache#483) (#4)
* upd
* upd
* fix
* upd
* upd
* upd
* upd
* upd
* fix
* upd
* upd
* upd
* upd
* upd
* upd
* upd
* codegen-rule
* upd
* upd
* test
* upd
* fix
* two arguments
Co-authored-by: Zihao Ye <expye@outlook.com>
* Fix AxisTree (#3)
* fix axis tree
* upd
* Format and Buffer data structure (#1)
* [SparseTIR] Constructors and Python Interface for `Axis` and `SparseBuffer` (#2)
* add methods for Object
* axis constructors
* methods for SparseBuffer
* put into registry
* python interface
* fix axis tree
* upd
* Format and Buffer data structure (#1)
* [SparseTIR] Constructors and Python Interface for `Axis` and `SparseBuffer` (#2)
* add methods for Object
* axis constructors
* methods for SparseBuffer
* put into registry
* python interface
* [CherryPick][Intrinsic] lower_bound and upper_bound for binary search in Sparse TIR. (apache#483) (#4)
* upd
* upd
* fix
* upd
* upd
* upd
* upd
* upd
* fix
* upd
* upd
* upd
* upd
* upd
* upd
* upd
* codegen-rule
* upd
* upd
* test
* upd
* fix
* two arguments
Co-authored-by: Zihao Ye <expye@outlook.com>
* Fix AxisTree (#3)
* fix axis tree
* upd
* [SparseTIR] Add SparseBufferLoad/SparseBufferStore (#5)
* Add dtype for SparseBuffer
* Add name for SparseBuffer. Remove `ndim`
* Remove namespace sparse
* Add SparseBufferLoad/Store
* Add method `ndim()`
* Format and Buffer data structure (#1)
* [SparseTIR] Constructors and Python Interface for `Axis` and `SparseBuffer` (#2)
* add methods for Object
* axis constructors
* methods for SparseBuffer
* put into registry
* python interface
* [CherryPick][Intrinsic] lower_bound and upper_bound for binary search in Sparse TIR. (apache#483) (#4)
* upd
* upd
* fix
* upd
* upd
* upd
* upd
* upd
* fix
* upd
* upd
* upd
* upd
* upd
* upd
* upd
* codegen-rule
* upd
* upd
* test
* upd
* fix
* two arguments
Co-authored-by: Zihao Ye <expye@outlook.com>
* Fix AxisTree (#3)
* fix axis tree
* upd
* [SparseTIR] Add SparseBufferLoad/SparseBufferStore (#5)
* Add dtype for SparseBuffer
* Add name for SparseBuffer. Remove `ndim`
* Remove namespace sparse
* Add SparseBufferLoad/Store
* Add method `ndim()`
* [SparseTIR] Introduce SpIterVar (#6)
* [SparseTIR] Introduce SpIterVar
* Add conversion to PrimExpr
* [BugFix] Fix binary search & SpIterVar (#7)
* [BugFix] Add field `is_reduction` for SpIterVar (#9)
* [BugFix] Add field `is_reduction` for SpIterVar
* Formatting
* upd
* upd
Co-authored-by: Ruihang Lai <lairuihangdongdong@qq.com>1 parent c0d8621 commit 421adbb
File tree
8 files changed
+451
-99
lines changed- include/tvm/tir
- python/tvm
- script
- tir
- tir
- src/tir/ir
- tests/python/unittest
8 files changed
+451
-99
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
142 | | - | |
143 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
144 | 150 | | |
145 | 151 | | |
146 | 152 | | |
| |||
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
162 | | - | |
| 168 | + | |
| 169 | + | |
163 | 170 | | |
164 | | - | |
| 171 | + | |
| 172 | + | |
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
| |||
198 | 206 | | |
199 | 207 | | |
200 | 208 | | |
201 | | - | |
| 209 | + | |
| 210 | + | |
202 | 211 | | |
203 | 212 | | |
204 | 213 | | |
| |||
220 | 229 | | |
221 | 230 | | |
222 | 231 | | |
223 | | - | |
| 232 | + | |
| 233 | + | |
224 | 234 | | |
225 | | - | |
| 235 | + | |
| 236 | + | |
226 | 237 | | |
227 | 238 | | |
228 | 239 | | |
| |||
240 | 251 | | |
241 | 252 | | |
242 | 253 | | |
243 | | - | |
| 254 | + | |
| 255 | + | |
244 | 256 | | |
245 | 257 | | |
246 | 258 | | |
| |||
262 | 274 | | |
263 | 275 | | |
264 | 276 | | |
265 | | - | |
| 277 | + | |
| 278 | + | |
266 | 279 | | |
267 | | - | |
| 280 | + | |
| 281 | + | |
268 | 282 | | |
269 | 283 | | |
270 | 284 | | |
271 | 285 | | |
272 | 286 | | |
273 | 287 | | |
274 | 288 | | |
275 | | - | |
276 | | - | |
277 | 289 | | |
278 | | - | |
| 290 | + | |
| 291 | + | |
279 | 292 | | |
280 | | - | |
281 | | - | |
282 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
283 | 296 | | |
284 | 297 | | |
285 | 298 | | |
| |||
293 | 306 | | |
294 | 307 | | |
295 | 308 | | |
296 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
297 | 312 | | |
298 | 313 | | |
299 | 314 | | |
| |||
302 | 317 | | |
303 | 318 | | |
304 | 319 | | |
305 | | - | |
306 | | - | |
307 | 320 | | |
308 | 321 | | |
309 | 322 | | |
310 | 323 | | |
311 | 324 | | |
312 | 325 | | |
313 | | - | |
314 | | - | |
315 | 326 | | |
316 | 327 | | |
317 | 328 | | |
318 | 329 | | |
319 | | - | |
320 | 330 | | |
321 | 331 | | |
322 | 332 | | |
323 | | - | |
324 | 333 | | |
325 | 334 | | |
326 | 335 | | |
327 | | - | |
328 | | - | |
| 336 | + | |
| 337 | + | |
329 | 338 | | |
330 | 339 | | |
331 | 340 | | |
332 | | - | |
333 | 341 | | |
334 | 342 | | |
335 | 343 | | |
336 | | - | |
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
| |||
346 | 353 | | |
347 | 354 | | |
348 | 355 | | |
349 | | - | |
350 | | - | |
| 356 | + | |
351 | 357 | | |
352 | 358 | | |
353 | 359 | | |
| |||
380 | 386 | | |
381 | 387 | | |
382 | 388 | | |
383 | | - | |
384 | | - | |
| 389 | + | |
| 390 | + | |
385 | 391 | | |
386 | 392 | | |
387 | 393 | | |
| |||
400 | 406 | | |
401 | 407 | | |
402 | 408 | | |
403 | | - | |
404 | | - | |
| 409 | + | |
| 410 | + | |
405 | 411 | | |
406 | 412 | | |
407 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
330 | 352 | | |
331 | 353 | | |
332 | 354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
122 | | - | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| 136 | + | |
| 137 | + | |
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
| |||
151 | 159 | | |
152 | 160 | | |
153 | 161 | | |
| 162 | + | |
154 | 163 | | |
155 | 164 | | |
156 | 165 | | |
| |||
208 | 217 | | |
209 | 218 | | |
210 | 219 | | |
211 | | - | |
| 220 | + | |
212 | 221 | | |
213 | | - | |
| 222 | + | |
214 | 223 | | |
215 | 224 | | |
216 | 225 | | |
| |||
225 | 234 | | |
226 | 235 | | |
227 | 236 | | |
228 | | - | |
| 237 | + | |
229 | 238 | | |
230 | 239 | | |
231 | 240 | | |
| |||
0 commit comments