#include <expr.h>
◆ If()
The constructor.
- Parameters
-
cond | The condition of a if node. |
true_branch | The fall through branch. If this is not a SeqExpr, it will be wrapped in a SeqExpr, to satisfy the Relax IR requirement that all scopes be contained in a SeqExpr. |
false_branch | The branch for execution when condition is false. If this is not a SeqExpr, it will be wrapped in a SeqExpr, to satisfy the Relax IR requirement that all scopes be contained in a SeqExpr. |
span | The source span of the expression. |
◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()
tvm::relax::If::TVM_DEFINE_OBJECT_REF_COW_METHOD |
( |
IfNode |
| ) |
|
◆ TVM_DEFINE_OBJECT_REF_METHODS()
tvm::relax::If::TVM_DEFINE_OBJECT_REF_METHODS |
( |
If |
, |
|
|
Expr |
, |
|
|
IfNode |
|
|
) |
| |
The documentation for this class was generated from the following file: