Managed reference to FunctionNode.
More...
#include <function.h>
|
| | Function (tvm::Array< Var > params, Expr body, Type ret_type, tvm::Array< TypeVar > ty_params, tvm::DictAttrs attrs=NullValue< DictAttrs >(), Span span=Span()) |
| | Constructor. More...
|
| |
| | TVM_DEFINE_OBJECT_REF_METHODS (Function, BaseFunc, FunctionNode) |
| |
| | TVM_DEFINE_OBJECT_REF_COW_METHOD (FunctionNode) |
| |
| | TVM_DEFINE_OBJECT_REF_METHODS (BaseFunc, RelayExpr, BaseFuncNode) |
| |
| | 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...
|
| |
Managed reference to FunctionNode.
- See also
- FunctionNode
◆ Function()
Constructor.
- Parameters
-
| params | The parameters of the function. |
| body | The body of the function. |
| ret_type | The return type of the function. |
| ty_params | The type parameters. |
| attrs | Additional function attributes. |
| span | The span of the function. |
◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()
| tvm::relay::Function::TVM_DEFINE_OBJECT_REF_COW_METHOD |
( |
FunctionNode |
| ) |
|
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: