Commit 1e6482c
authored
[Relax] Expose name_hint field for BlockBuilder.match_cast (#16600)
* [Relax] Expose name_hint field for BlockBuilder.match_cast
Prior to this commit, while a `relax.VarBinding` created using
`BlockBuilder.emit` could have its name explicitly specified by the
user, a `relax.MatchCast` created using `BlockBuilder.match_cast`
could not. This commit updates `BlockBuilder.match_cast` to accept an
optional `name_hint` parameter, which is then provided to the C++
`BlockBuilder::EmitMatchCast` method.
* Fix lint error1 parent 36ebcd0 commit 1e6482c
File tree
3 files changed
+14
-5
lines changed- python/tvm/relax
- src/relax/ir
- tests/python/relax
3 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
| 537 | + | |
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
548 | 551 | | |
549 | 552 | | |
550 | 553 | | |
551 | 554 | | |
552 | 555 | | |
553 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
554 | 562 | | |
555 | 563 | | |
556 | 564 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
1019 | | - | |
| 1018 | + | |
| 1019 | + | |
1020 | 1020 | | |
1021 | 1021 | | |
1022 | 1022 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| |||
0 commit comments