Function tvm::script::ir_builder::ir::DeclFunction#
Defined in File ir.h
Function Documentation#
-
GlobalVar tvm::script::ir_builder::ir::DeclFunction(const ffi::String &func_name, const BaseFunc &func_signature)#
Declare a Function without given the specific function implementation.
Note
It is usually used in cross-function call. And we can specify the function by
DefFunction- Parameters:
func_name – The function unique name.
func_signature – A Function marked with attr::kDeclaration, specifying the signature (i.e. func params and func return type/shape).
- Returns:
The corresponding GlobalVar.