Managed reference to FunctionNode.
More...
#include <function.h>
|
| TVM_TIRX_DLL | Function (ffi::Array< tvm::Var > params, ffi::Optional< SeqStmt > body, Type ret_type=VoidType(), DictAttrs attrs=DictAttrs(), Location loc=UnknownLoc()) |
| | Constructor.
|
| |
| | Function (ffi::ObjectPtr< FunctionNode > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Function, BaseFunc, FunctionNode) |
| |
| | TVM_DEFINE_OBJECT_REF_COW_METHOD (FunctionNode) |
| |
| | BaseFunc (ffi::ObjectPtr< BaseFuncNode > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (BaseFunc, Expr, BaseFuncNode) |
| |
| bool | operator== (const Expr &other) const =delete |
| |
| bool | operator!= (const Expr &other) const =delete |
| |
| bool | operator< (const Expr &other) const =delete |
| |
| | Expr (ffi::ObjectPtr< ExprNode > node) |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Expr, ffi::ObjectRef, ExprNode) |
| |
Managed reference to FunctionNode.
- See also
- FunctionNode
◆ Function() [1/2]
Constructor.
- Parameters
-
| params | The parameters of the function. |
| body | The body of the function, or std::nullopt for a declaration. |
| ret_type | The return type of the function. |
| attrs | Additional function attributes. |
| loc | The location of this object in the source code. |
◆ Function() [2/2]
| tvm::tirx::Function::Function |
( |
ffi::ObjectPtr< FunctionNode > |
node | ) |
|
|
inlineexplicit |
◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()
| tvm::tirx::Function::TVM_DEFINE_OBJECT_REF_COW_METHOD |
( |
FunctionNode |
| ) |
|
◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()
The documentation for this class was generated from the following file: