The ir_builder frame for the relax function.
More...
#include <frame.h>
The ir_builder frame for the relax function.
◆ EnterWithScope()
void tvm::script::ir_builder::relax::FunctionFrameNode::EnterWithScope |
( |
| ) |
|
|
finalvirtual |
◆ ExitWithScope()
void tvm::script::ir_builder::relax::FunctionFrameNode::ExitWithScope |
( |
| ) |
|
|
finalvirtual |
◆ RegisterReflection()
static void tvm::script::ir_builder::relax::FunctionFrameNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
tvm::script::ir_builder::relax::FunctionFrameNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"script.ir_builder.relax.FunctionFrame" |
, |
|
|
FunctionFrameNode |
, |
|
|
SeqExprFrameNode |
|
|
) |
| |
◆ attrs
ffi::Map<ffi::String, Any> tvm::script::ir_builder::relax::FunctionFrameNode::attrs |
◆ block_builder
The block builder to create Relax function.
◆ is_private
ffi::Optional<Bool> tvm::script::ir_builder::relax::FunctionFrameNode::is_private |
Whether the function is annotated as private.
◆ is_pure
ffi::Optional<Bool> tvm::script::ir_builder::relax::FunctionFrameNode::is_pure |
Whether the function is annotated as pure.
◆ name
ffi::Optional<ffi::String> tvm::script::ir_builder::relax::FunctionFrameNode::name |
The function name.
- Note
- The name will not be specified in constructor, so it is "Optional", However, we must specify the name by
R.func_name
before exit this frame.
◆ params
ffi::Array<tvm::relax::Var> tvm::script::ir_builder::relax::FunctionFrameNode::params |
◆ ret_struct_info
The function return struct info.
- Note
- Usually the function return type can be deduced by the function body. But we can use this field to specify a more "accurate" return type. i.e. If the
ret_struct_info
is None, try to use the deduced type from body If the ret_struct_info
is not None, we can still take body.struct_info if we ret_struct_info is base of body.struct_info. If not, we will take the specified ret_struct_info
.
The documentation for this class was generated from the following file:
- include/tvm/script/ir_builder/relax/frame.h