Managed reference to FuncStructInfoNode.
More...
#include <struct_info.h>
◆ FuncStructInfo()
Constructor from parameter struct info and return value struct info.
- Parameters
-
params | The struct info of function parameters. |
ret | The return value struct info. |
purity | The purity of the function (true by default). |
span | The span of the AST. |
- Note
- If the ret contains variables(tir::Var and relax::Var), they must be deducible from params. If you are unsure, you can always erase ret to static.
◆ OpaqueFunc() [1/2]
Construct an opaque function using from return struct info.
- Parameters
-
ret | The struct info of the return value. |
purity | The purity of the function (false by default: most external functions are not pure). |
span | The span of the AST. |
- Returns
- The FuncStructInfo for opaque packedfunc.
- Note
- Defaults to an derive func that always return ObjectStructInfo if not specified.
◆ OpaqueFunc() [2/2]
Constructing an opaque function struct info using derive_func.
- Parameters
-
derive_func | Derivation function. |
purity | The purity of the function (false by default: most external functions are not pure). |
span | The span of the AST. |
- Returns
- The FuncStructInfo for opaque packedfunc.
- Note
- Defaults to an derive func that always return ObjectStructInfo if not specified.
◆ TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: