tvm
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
tvm::IntImm Class Reference

Managed reference class to IntImmNode. More...

#include <expr.h>

Inheritance diagram for tvm::IntImm:
Collaboration diagram for tvm::IntImm:

Public Member Functions

 IntImm (PrimType value_ty, int64_t value, Span span=Span())
 Constructor. More...
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (IntImm, PrimExpr, IntImmNode)
 
 TVM_DEFINE_OBJECT_REF_COW_METHOD (IntImmNode)
 
- Public Member Functions inherited from tvm::PrimExpr
 PrimExpr (Call call)
 Construct from a call after checking that its result type is PrimType. More...
 
 PrimExpr (int32_t value)
 construct from integer. More...
 
 PrimExpr (float value)
 construct from float. More...
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (PrimExpr, TypedExpr< PrimType >, ExprNode)
 
- Public Member Functions inherited from tvm::TypedExpr< PrimType >
PrimType ty () const
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (TypedExpr, Expr, ExprNode)
 
- Public Member Functions inherited from tvm::Expr
bool operator== (const Expr &other) const =delete
 
bool operator!= (const Expr &other) const =delete
 
bool operator< (const Expr &other) const =delete
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (Expr, ffi::ObjectRef, ExprNode)
 

Static Public Member Functions

static IntImm Bool (bool value, Span span=Span())
 Construct a scalar boolean constant. More...
 
static IntImm Int32 (int64_t value, Span span=Span())
 Construct a scalar int32 constant. More...
 
static IntImm Int64 (int64_t value, Span span=Span())
 Construct a scalar int64 constant. More...
 
- Static Public Member Functions inherited from tvm::PrimExpr
static PrimExpr ConvertFallbackValue (ffi::String value)
 construct from string to form a StringImm. More...
 

Static Public Attributes

static constexpr bool _type_container_is_exact = true
 
- Static Public Attributes inherited from tvm::PrimExpr
static constexpr bool _type_container_is_exact = false
 
- Static Public Attributes inherited from tvm::TypedExpr< PrimType >
static constexpr bool _type_container_is_exact
 

Detailed Description

Managed reference class to IntImmNode.

See also
IntImmNode

Constructor & Destructor Documentation

◆ IntImm()

tvm::IntImm::IntImm ( PrimType  value_ty,
int64_t  value,
Span  span = Span() 
)

Constructor.

Parameters
value_tyThe primitive type of the value.
valueThe internal value.
spanThe location of this object in the source code.

Member Function Documentation

◆ Bool()

static IntImm tvm::IntImm::Bool ( bool  value,
Span  span = Span() 
)
inlinestatic

Construct a scalar boolean constant.

Parameters
valueThe boolean value.
spanThe location of this object in the source code.

◆ Int32()

static IntImm tvm::IntImm::Int32 ( int64_t  value,
Span  span = Span() 
)
inlinestatic

Construct a scalar int32 constant.

Parameters
valueThe integer value.
spanThe location of this object in the source code.

◆ Int64()

static IntImm tvm::IntImm::Int64 ( int64_t  value,
Span  span = Span() 
)
inlinestatic

Construct a scalar int64 constant.

Parameters
valueThe integer value.
spanThe location of this object in the source code.

◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()

tvm::IntImm::TVM_DEFINE_OBJECT_REF_COW_METHOD ( IntImmNode  )

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE()

tvm::IntImm::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE ( IntImm  ,
PrimExpr  ,
IntImmNode   
)

Member Data Documentation

◆ _type_container_is_exact

constexpr bool tvm::IntImm::_type_container_is_exact = true
staticconstexpr

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