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

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

#include <stmt.h>

Inheritance diagram for tvm::AssertStmtObj:
Collaboration diagram for tvm::AssertStmtObj:

Public Member Functions

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

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::StmtObj
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::StmtObj
Location loc = UnknownLoc()
 Location that points to the original source code. Reserved debug information.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::StmtObj
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

◆ AssertStmtObj() [1/2]

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

◆ AssertStmtObj() [2/2]

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

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::AssertStmtObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "ir.AssertStmt"  ,
AssertStmtObj  ,
StmtObj   
)

Member Data Documentation

◆ condition

PrimExpr tvm::AssertStmtObj::condition

Condition to be checked.

◆ error_kind

StringImm tvm::AssertStmtObj::error_kind

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

◆ message_parts

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

Error message fragments, concatenated at runtime when assertion fails.


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