Create a tuple expression. Parameters ---------- *fields : Expr The fields of the tuple. Returns ------- res : Expr The result tuple.
(*fields: Expr)
| 712 | |
| 713 | |
| 714 | def tuple(*fields: Expr) -> Expr: |
| 715 | """Create a tuple expression. |
| 716 | Parameters |
| 717 | ---------- |
| 718 | *fields : Expr |
| 719 | The fields of the tuple. |
| 720 | Returns |
| 721 | ------- |
| 722 | res : Expr |
| 723 | The result tuple. |
| 724 | """ |
| 725 | if len(fields) == 0: |
| 726 | fields = py_tuple() |
| 727 | |
| 728 | return relax.Tuple(fields) # type: ignore[attr-defined] # pylint: disable=no-member |
| 729 | |
| 730 | |
| 731 | ############################### R.shape ################################ |
no outgoing calls
searching dependent graphs…