Commit 11f3c44
committed
[Transform] Remove R.Object parameters after LazyTranformParams
Prior to this commit, the output of
`relax.transform.LazyTransformParams` would include all parameters
that are not `R.Tensor`, in case they defined symbolic variables.
However, this added too many unnecessary parameters, such as
`R.Object` which cannot define symbolic variables. This commit
updates `relax.transform.LazyTransformParams` to only retain `R.Prim`
and `R.Shape` parameters, which can define symbolic variables.1 parent cae1af6 commit 11f3c44
File tree
2 files changed
+23
-1
lines changed- python/tvm/relax/transform
- tests/python/relax
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
807 | 827 | | |
808 | 828 | | |
0 commit comments