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

Managed reference to CastNode. More...

#include <expr.h>

Inheritance diagram for tvm::prim::Cast:
Collaboration diagram for tvm::prim::Cast:

Public Member Functions

TVM_TIRX_DLL Cast (PrimType value_ty, PrimExpr value, Location loc=UnknownLoc())
 
 Cast (ffi::ObjectPtr< CastNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Cast, PrimExpr, CastNode)
 
 TVM_DEFINE_OBJECT_REF_COW_METHOD (CastNode)
 
- Public Member Functions inherited from tvm::PrimExpr
TVM_TIRX_DLL PrimExpr (Call call)
 Construct from a call after checking that its result type is PrimType.
 
TVM_TIRX_DLL PrimExpr (int32_t value)
 construct from integer.
 
TVM_TIRX_DLL PrimExpr (float value)
 construct from float.
 
 PrimExpr (ffi::ObjectPtr< ExprNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (PrimExpr, TypedExpr< PrimType >, ExprNode)
 
- Public Member Functions inherited from tvm::TypedExpr< PrimType >
PrimType ty () const
 
 TypedExpr (ffi::ObjectPtr< ExprNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (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
 
 Expr (ffi::ObjectPtr< ExprNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Expr, ffi::ObjectRef, ExprNode)
 

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 to CastNode.

See also
CastNode

Constructor & Destructor Documentation

◆ Cast() [1/2]

TVM_TIRX_DLL tvm::prim::Cast::Cast ( PrimType  value_ty,
PrimExpr  value,
Location  loc = UnknownLoc() 
)

◆ Cast() [2/2]

tvm::prim::Cast::Cast ( ffi::ObjectPtr< CastNode >  node)
inlineexplicit

Member Function Documentation

◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()

tvm::prim::Cast::TVM_DEFINE_OBJECT_REF_COW_METHOD ( CastNode  )

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::prim::Cast::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( Cast  ,
PrimExpr  ,
CastNode   
)

Member Data Documentation

◆ _type_container_is_exact

constexpr bool tvm::prim::Cast::_type_container_is_exact = true
staticconstexpr

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