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=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, RelaxExpr, BaseFuncNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (RelaxExpr, BaseExpr, RelaxExprNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (BaseExpr, ObjectRef, BaseExprNode) |
|
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: