Class Function#
Defined in File function.h
Inheritance Relationships#
Base Type#
public tvm::BaseFunc(Class BaseFunc)
Class Documentation#
-
class Function : public tvm::BaseFunc#
Managed reference to FunctionObj.
See also
Public Types
-
using ContainerType = FunctionObj#
Public Functions
-
Function(ffi::Array<tvm::Var> params, SeqStmt body, Type ret_type = VoidType(), DictAttrs attrs = DictAttrs(), Location loc = UnknownLoc())#
Constructor.
- Parameters:
params – The parameters of the function.
body – The body of the function. Declarations use an empty sequence and tvm::attr::kDeclaration.
ret_type – The return type of the function.
attrs – Additional function attributes.
loc – The location of this object in the source code.
-
inline explicit Function(ffi::ObjectPtr<FunctionObj> node)#
-
inline explicit Function(::tvm::ffi::UnsafeInit tag)#
-
inline __PtrType operator->() const#
-
inline __PtrType get() const#
-
inline FunctionObj *CopyOnWrite()#
-
using ContainerType = FunctionObj#