#include <expr.h>
|
| | Var (String name_hint, Type type_annotation, Span span=Span()) |
| | The constructor. More...
|
| |
| | Var (Id vid, Type type_annotation, Span span=Span()) |
| | The constructor. More...
|
| |
| | TVM_DEFINE_OBJECT_REF_METHODS (Var, RelayExpr, VarNode) |
| |
| | TVM_DEFINE_OBJECT_REF_COW_METHOD (VarNode) |
| |
| | TVM_DEFINE_OBJECT_REF_METHODS (RelayExpr, BaseExpr, RelayExprNode) |
| |
| | TVM_DEFINE_OBJECT_REF_METHODS (BaseExpr, ObjectRef, BaseExprNode) |
| |
| | ObjectRef ()=default |
| | default constructor More...
|
| |
| | ObjectRef (ObjectPtr< Object > data) |
| | Constructor from existing object ptr. More...
|
| |
| bool | same_as (const ObjectRef &other) const |
| | Comparator. More...
|
| |
| bool | operator== (const ObjectRef &other) const |
| | Comparator. More...
|
| |
| bool | operator!= (const ObjectRef &other) const |
| | Comparator. More...
|
| |
| bool | operator< (const ObjectRef &other) const |
| | Comparator. More...
|
| |
| bool | defined () const |
| |
| const Object * | get () const |
| |
| const Object * | operator-> () const |
| |
| bool | unique () const |
| |
| int | use_count () const |
| |
| template<typename ObjectType > |
| const ObjectType * | as () const |
| | Try to downcast the internal Object to a raw pointer of a corresponding type. More...
|
| |
|
| static Var | GenSym (Type type_annotation={}, Span span={}) |
| | Return a globally fresh name. Helps with debugging to follow the same variable between passes and sub-expressions. More...
|
| |
◆ Var() [1/2]
The constructor.
- Parameters
-
| name_hint | The name hint of a variable. |
| type_annotation | The type annotation of a variable. |
| span | The source span of the expression. |
◆ Var() [2/2]
| tvm::relay::Var::Var |
( |
Id |
vid, |
|
|
Type |
type_annotation, |
|
|
Span |
span = Span() |
|
) |
| |
The constructor.
- Parameters
-
| vid | The unique id of a variable. |
| type_annotation | The type annotation of a variable. |
| span | The source span of the expression. |
◆ GenSym()
| static Var tvm::relay::Var::GenSym |
( |
Type |
type_annotation = {}, |
|
|
Span |
span = {} |
|
) |
| |
|
static |
Return a globally fresh name. Helps with debugging to follow the same variable between passes and sub-expressions.
TODO(mbs): Replace with name creation w.r.t. scopes once available as part of name gen overhaul.
◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()
| tvm::relay::Var::TVM_DEFINE_OBJECT_REF_COW_METHOD |
( |
VarNode |
| ) |
|
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: