Managed reference to PrimFuncNode.
More...
#include <function.h>
|
| | PrimFunc (Array< tir::Var > params, Stmt body, Type ret_type=VoidType(), Map< tir::Var, Buffer > buffer_map=Map< tir::Var, Buffer >(), DictAttrs attrs=NullValue< DictAttrs >(), Span span=Span()) |
| | Constructor. More...
|
| |
| | TVM_DEFINE_OBJECT_REF_METHODS (PrimFunc, BaseFunc, PrimFuncNode) |
| |
| | TVM_DEFINE_OBJECT_REF_COW_METHOD (PrimFuncNode) |
| |
| | 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 PrimFuncNode.
- See also
- PrimFuncNode
◆ PrimFunc()
Constructor.
- Parameters
-
| params | The parameters of the function. |
| body | The body of the function. |
| ret_type | The return type of the function. |
| buffer_map | The buffer map for parameter buffer unpacking. This contains buffer objects as they appear in the body of the PrimFunc. (e.g. a buffer of shape [1024] originally generated as a tensor of shape [32, 32]) |
| attrs | Additional function attributes. |
| span | The location of this object in the source code. |
◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()
| tvm::tir::PrimFunc::TVM_DEFINE_OBJECT_REF_COW_METHOD |
( |
PrimFuncNode |
| ) |
|
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: