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

Inclusive constant integer bounds, representing [min_value, max_value]. More...

#include <analyzer.h>

Inheritance diagram for tvm::sym::ConstIntBoundObj:
Collaboration diagram for tvm::sym::ConstIntBoundObj:

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("sym.ConstIntBound", ConstIntBoundObj, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 Register the fields exposed through FFI reflection.
 

Public Attributes

int64_t min_value
 Inclusive lower endpoint, or kNegInf when unbounded.
 
int64_t max_value
 Inclusive upper endpoint, or kPosInf when unbounded.
 

Static Public Attributes

static const constexpr int64_t kPosInf = std::numeric_limits<int64_t>::max()
 Number to represent +inf.
 
static const constexpr int64_t kNegInf = -kPosInf
 Number to represent -inf.
 
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 Compare and hash these value objects structurally.
 

Detailed Description

Inclusive constant integer bounds, representing [min_value, max_value].

The infinity sentinels represent unbounded endpoints, not finite integer values.

Member Function Documentation

◆ RegisterReflection()

static void tvm::sym::ConstIntBoundObj::RegisterReflection ( )
inlinestatic

Register the fields exposed through FFI reflection.

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::sym::ConstIntBoundObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "sym.ConstIntBound"  ,
ConstIntBoundObj  ,
ffi::Object   
)

Member Data Documentation

◆ _type_s_eq_hash_kind

constexpr TVMFFISEqHashKind tvm::sym::ConstIntBoundObj::_type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
staticconstexpr

Compare and hash these value objects structurally.

◆ kNegInf

const constexpr int64_t tvm::sym::ConstIntBoundObj::kNegInf = -kPosInf
staticconstexpr

Number to represent -inf.

Note
The sentinels satisfy -kPosInf == kNegInf.

◆ kPosInf

const constexpr int64_t tvm::sym::ConstIntBoundObj::kPosInf = std::numeric_limits<int64_t>::max()
staticconstexpr

Number to represent +inf.

◆ max_value

int64_t tvm::sym::ConstIntBoundObj::max_value

Inclusive upper endpoint, or kPosInf when unbounded.

◆ min_value

int64_t tvm::sym::ConstIntBoundObj::min_value

Inclusive lower endpoint, or kNegInf when unbounded.


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