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

 Var (ffi::String name, ffi::Optional< Type > ty_annotation, Span span=Span())
 
Var CopyWithName (const ffi::String &name) const
 Return a fresh ordinary Var with the same type and a new name.
 
Var CopyWithSuffix (const ffi::String &suffix) const
 Return a fresh ordinary Var with a suffix appended to its name.
 
Var CopyWithDType (PrimType dtype) const
 Return a fresh ordinary Var with a new primitive type.
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (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
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (Expr, ffi::ObjectRef, ExprNode)
 

Detailed Description

Managed reference to VarNode.

Constructor & Destructor Documentation

◆ Var()

tvm::Var::Var ( ffi::String  name,
ffi::Optional< Type ty_annotation,
Span  span = Span() 
)
explicit

Member Function Documentation

◆ CopyWithDType()

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

Return a fresh ordinary Var with a new primitive type.

◆ CopyWithName()

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

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

◆ CopyWithSuffix()

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

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

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE()

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

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