tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::AssertStmtNode Class Reference

Assert condition, if an error occurs, return the error message. More...

#include <stmt.h>

Inheritance diagram for tvm::AssertStmtNode:
Collaboration diagram for tvm::AssertStmtNode:

Public Member Functions

 AssertStmtNode (ffi::UnsafeInit tag)
 
 AssertStmtNode (PrimExpr condition, StringImm error_kind)
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.AssertStmt", AssertStmtNode, StmtNode)
 
- Public Member Functions inherited from tvm::StmtNode
 StmtNode ()=default
 
 StmtNode (Location loc)
 
 TVM_FFI_DECLARE_OBJECT_INFO ("ir.Stmt", StmtNode, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::StmtNode
static void RegisterReflection ()
 

Public Attributes

PrimExpr condition
 Condition to be checked.
 
StringImm error_kind
 The error kind, e.g. "RuntimeError", "TypeError", "ValueError".
 
ffi::Array< StringImm > message_parts
 Error message fragments, concatenated at runtime when assertion fails.
 
- Public Attributes inherited from tvm::StmtNode
Location loc = UnknownLoc()
 Location that points to the original source code. Reserved debug information.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::StmtNode
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 
static constexpr bool _type_s_eq_hash_subclass_kind_fixed = true
 
static constexpr const uint32_t _type_child_slots = 15
 

Detailed Description

Assert condition, if an error occurs, return the error message.

The error is described by:

Constructor & Destructor Documentation

◆ AssertStmtNode() [1/2]

tvm::AssertStmtNode::AssertStmtNode ( ffi::UnsafeInit  tag)
inlineexplicit

◆ AssertStmtNode() [2/2]

tvm::AssertStmtNode::AssertStmtNode ( PrimExpr  condition,
StringImm  error_kind 
)
inline

Member Function Documentation

◆ RegisterReflection()

static void tvm::AssertStmtNode::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::AssertStmtNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "ir.AssertStmt"  ,
AssertStmtNode  ,
StmtNode   
)

Member Data Documentation

◆ condition

PrimExpr tvm::AssertStmtNode::condition

Condition to be checked.

◆ error_kind

StringImm tvm::AssertStmtNode::error_kind

The error kind, e.g. "RuntimeError", "TypeError", "ValueError".

◆ message_parts

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

Error message fragments, concatenated at runtime when assertion fails.


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