#include <expr.h>
|
| Tuple (tvm::Array< Expr > fields, Span span=Span()) |
| The constructor. More...
|
|
template<typename RelaxExpr , typename = std::enable_if_t<std::is_base_of_v<Expr, RelaxExpr>>> |
| Tuple (tvm::Array< RelaxExpr > fields, Span span=Span()) |
| Utility constructor to handle conversion to relax::Expr. More...
|
|
| TVM_DEFINE_OBJECT_REF_METHODS (Tuple, Expr, TupleNode) |
|
| TVM_DEFINE_OBJECT_REF_COW_METHOD (TupleNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (RelaxExpr, BaseExpr, RelaxExprNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (BaseExpr, ObjectRef, BaseExprNode) |
|
◆ Tuple() [1/2]
tvm::relax::Tuple::Tuple |
( |
tvm::Array< Expr > |
fields, |
|
|
Span |
span = Span() |
|
) |
| |
|
explicit |
The constructor.
- Parameters
-
fields | The fields of a tuple. |
span | The source span of the expression. |
◆ Tuple() [2/2]
template<typename RelaxExpr , typename = std::enable_if_t<std::is_base_of_v<Expr, RelaxExpr>>>
Utility constructor to handle conversion to relax::Expr.
If the calling scope already has an array of a specific type of relax expression (e.g. Array<relax::Var>
), it must be converted into an array of base type. This constructor handles the conversion to the base Array<relax::Expr>
.
- Template Parameters
-
RelaxExpr | The type of relax expression passed in as an argument. |
- Parameters
-
fields | The fields of a tuple. |
span | The source span of the expression. |
◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()
tvm::relax::Tuple::TVM_DEFINE_OBJECT_REF_COW_METHOD |
( |
TupleNode |
| ) |
|
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: