#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_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...
|
|
◆ 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. |
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: