Class SelectObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class SelectObj : public tvm::ExprObj#

return true_value if condition is true, otherwise return false_value.

Note

Both true_value and false_value could be evaluated regardless of the condition value. Do not use it to guard against out of bound access, please use if_then_else instead.

Public Functions

inline SelectObj(PrimExpr condition, PrimExpr true_value, PrimExpr false_value)#
inline explicit SelectObj(ffi::UnsafeInit tag)#

Public Members

PrimExpr condition#

The condition.

PrimExpr true_value#

value to be returned when condition is true.

PrimExpr false_value#

value to be returned when condition is false.

Public Static Functions

static inline void RegisterReflection()#
static inline int32_t _GetOrAllocRuntimeTypeIndex()#
static inline int32_t RuntimeTypeIndex() noexcept#