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

Managed reference to VarNode. More...

#include <expr.h>

Inheritance diagram for tvm::Var:
Collaboration diagram for tvm::Var:

Public Member Functions

TVM_TIRX_DLL Var (ffi::String name, ffi::Optional< Type > ty_annotation, Location loc=UnknownLoc())
 
TVM_TIRX_DLL Var CopyWithName (const ffi::String &name) const
 Return a fresh ordinary Var with the same type and a new name.
 
TVM_TIRX_DLL Var CopyWithSuffix (const ffi::String &suffix) const
 Return a fresh ordinary Var with a suffix appended to its name.
 
TVM_TIRX_DLL Var CopyWithDType (PrimType dtype) const
 Return a fresh ordinary Var with a new primitive type.
 
TVM_TIRX_DLL Var CopyWithType (Type type) const
 Return a fresh ordinary Var with a new type, retaining its metadata.
 
 Var (ffi::ObjectPtr< VarNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Var, Expr, VarNode)
 
- 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)
 

Detailed Description

Managed reference to VarNode.

Constructor & Destructor Documentation

◆ Var() [1/2]

TVM_TIRX_DLL tvm::Var::Var ( ffi::String  name,
ffi::Optional< Type >  ty_annotation,
Location  loc = UnknownLoc() 
)
explicit

◆ Var() [2/2]

tvm::Var::Var ( ffi::ObjectPtr< VarNode >  node)
inlineexplicit

Member Function Documentation

◆ CopyWithDType()

TVM_TIRX_DLL Var tvm::Var::CopyWithDType ( PrimType  dtype) const

Return a fresh ordinary Var with a new primitive type.

◆ CopyWithName()

TVM_TIRX_DLL Var tvm::Var::CopyWithName ( const ffi::String &  name) const

Return a fresh ordinary Var with the same type and a new name.

◆ CopyWithSuffix()

TVM_TIRX_DLL Var tvm::Var::CopyWithSuffix ( const ffi::String &  suffix) const

Return a fresh ordinary Var with a suffix appended to its name.

◆ CopyWithType()

TVM_TIRX_DLL Var tvm::Var::CopyWithType ( Type  type) const

Return a fresh ordinary Var with a new type, retaining its metadata.

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::Var::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( Var  ,
Expr  ,
VarNode   
)

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