tvm
|
Assert condition, if an error occurs, return the error message. More...
#include <stmt.h>
Public Member Functions | |
TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("tir.AssertStmt", AssertStmtNode, StmtNode) | |
![]() | |
StmtNode ()=default | |
StmtNode (Span span) | |
TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
TVM_FFI_DECLARE_OBJECT_INFO ("tir.Stmt", StmtNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
PrimExpr | condition |
Condition to be checked. More... | |
PrimExpr | message |
Error message when assertion failed. More... | |
Stmt | body |
Body which this assertion holds true. Will be executed after the assertion. More... | |
![]() | |
Span | span |
Span that points to the original source code. Reserved debug information. More... | |
Additional Inherited Members | |
![]() | |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
static constexpr const uint32_t | _type_child_slots = 15 |
Assert condition, if an error occurs, return the error message.
|
inlinestatic |
tvm::tir::AssertStmtNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "tir.AssertStmt" | , |
AssertStmtNode | , | ||
StmtNode | |||
) |
Stmt tvm::tir::AssertStmtNode::body |
Body which this assertion holds true. Will be executed after the assertion.
PrimExpr tvm::tir::AssertStmtNode::condition |
Condition to be checked.
PrimExpr tvm::tir::AssertStmtNode::message |
Error message when assertion failed.