|
tvm
|
The context information of the kernel required by op schedule. More...
#include <tirx_op.h>
Public Member Functions | |
| void | AddAllocBuffer (Buffer buffer) |
| Add a buffer to be allocated in the kernel. More... | |
| void | AddInitStmt (Stmt stmt, bool host=false) |
| Add an initialization statement to be inserted. More... | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("tirx.ScheduleContext", ScheduleContextNode, ffi::Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Public Attributes | |
| Target | target |
| The target of the kernel. More... | |
| ExecScope | exec_scope |
| The exec scope of the operator. More... | |
| ffi::Map< ffi::String, IterVar > | launch_params |
| The kernel launch parameters. More... | |
| ffi::Map< Var, Range > | var_range_map |
| A map from loop variables to their ranges. More... | |
| bool | alloc_only |
| Whether the schedule context is only used for buffer allocation. More... | |
| ffi::Map< ffi::String, ffi::ObjectRef > | callbacks |
| Callback to be handled when the operator is scheduled. More... | |
The context information of the kernel required by op schedule.
| void tvm::tirx::ScheduleContextNode::AddAllocBuffer | ( | Buffer | buffer | ) |
Add a buffer to be allocated in the kernel.
| void tvm::tirx::ScheduleContextNode::AddInitStmt | ( | Stmt | stmt, |
| bool | host = false |
||
| ) |
Add an initialization statement to be inserted.
| stmt | The statement to be inserted. |
| host | Whether the statement is a host statement. If True, the statement will be added to the host code (before the kernel). If False, the statement will be added to the kernel body (at the beginning of the kernel). |
|
inlinestatic |
| tvm::tirx::ScheduleContextNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "tirx.ScheduleContext" | , |
| ScheduleContextNode | , | ||
| ffi::Object | |||
| ) |
| bool tvm::tirx::ScheduleContextNode::alloc_only |
Whether the schedule context is only used for buffer allocation.
| ffi::Map<ffi::String, ffi::ObjectRef> tvm::tirx::ScheduleContextNode::callbacks |
Callback to be handled when the operator is scheduled.
| ExecScope tvm::tirx::ScheduleContextNode::exec_scope |
The exec scope of the operator.
| ffi::Map<ffi::String, IterVar> tvm::tirx::ScheduleContextNode::launch_params |
The kernel launch parameters.
| Target tvm::tirx::ScheduleContextNode::target |
The target of the kernel.
A map from loop variables to their ranges.