Class AssertFrameObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class AssertFrameObj : public tvm::script::ir_builder::ir::StmtFrameObj#

A frame that represents the assert statement. Proceeds if the condition is true, otherwise aborts with the message.

See also

AssertFrame

Public Functions

inline explicit AssertFrameObj(ffi::UnsafeInit tag)#
inline AssertFrameObj(PrimExpr condition, tvm::StringImm error_kind)#
virtual void ExitWithScope() final#

The method called when exiting RAII scope.

See also

tvm::support::With

Public Members

PrimExpr condition#

The PrimExpr to test.

tvm::StringImm error_kind#

The error kind, e.g. “RuntimeError”, “TypeError”, “ValueError”.

ffi::Array<tvm::StringImm> message_parts#

Error message fragments, concatenated at runtime when assertion fails.

Public Static Functions

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