tvm
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tvm::relax::IfExpr Class Reference

#include <expr.h>

Inheritance diagram for tvm::relax::IfExpr:
Collaboration diagram for tvm::relax::IfExpr:

Public Member Functions

 IfExpr (Expr cond, Expr true_branch, Expr false_branch, Location loc=UnknownLoc())
 The constructor.
 
 IfExpr (ffi::ObjectPtr< IfExprNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (IfExpr, Expr, IfExprNode)
 
 TVM_DEFINE_OBJECT_REF_COW_METHOD (IfExprNode)
 
- Public Member Functions inherited from tvm::Expr
bool operator== (const Expr &other) const =delete
 
bool operator!= (const Expr &other) const =delete
 
bool operator< (const Expr &other) const =delete
 
 Expr (ffi::ObjectPtr< ExprNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Expr, ffi::ObjectRef, ExprNode)
 

Constructor & Destructor Documentation

◆ IfExpr() [1/2]

tvm::relax::IfExpr::IfExpr ( Expr  cond,
Expr  true_branch,
Expr  false_branch,
Location  loc = UnknownLoc() 
)

The constructor.

Parameters
condThe condition of a if node.
true_branchThe 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_branchThe 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.
locThe source location of the expression.

◆ IfExpr() [2/2]

tvm::relax::IfExpr::IfExpr ( ffi::ObjectPtr< IfExprNode >  node)
inlineexplicit

Member Function Documentation

◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()

tvm::relax::IfExpr::TVM_DEFINE_OBJECT_REF_COW_METHOD ( IfExprNode  )

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::relax::IfExpr::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( IfExpr  ,
Expr  ,
IfExprNode   
)

The documentation for this class was generated from the following file: