tvm
|
return true_value if condition is true, otherwise return false_value. More...
#include <expr.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (SelectNode, PrimExprNode) | |
![]() | |
TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
TVM_DECLARE_BASE_OBJECT_INFO (PrimExprNode, BaseExprNode) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (BaseExprNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
PrimExpr | condition |
The condition. More... | |
PrimExpr | true_value |
value to be returned when condition is true. More... | |
PrimExpr | false_value |
value to be returned when condition is false. More... | |
![]() | |
DataType | dtype |
The runtime data type of the primitive expression. More... | |
![]() | |
Span | span |
Span that points to the original source code. Reserved debug information. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "tir.Select" |
![]() | |
static constexpr const char * | _type_key = "ir.PrimExpr" |
static constexpr const uint32_t | _type_child_slots = 40 |
![]() | |
static constexpr const char * | _type_key = "ir.BaseExpr" |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
static constexpr const uint32_t | _type_child_slots = 64 |
return true_value if condition is true, otherwise return false_value.
|
inlinestatic |
tvm::tir::SelectNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | SelectNode | , |
PrimExprNode | |||
) |
|
staticconstexpr |
PrimExpr tvm::tir::SelectNode::condition |
The condition.
PrimExpr tvm::tir::SelectNode::false_value |
value to be returned when condition is false.
PrimExpr tvm::tir::SelectNode::true_value |
value to be returned when condition is true.