PassContextNode contains the information that a pass can rely on, such as analysis results.
More...
#include <transform.h>
PassContextNode contains the information that a pass can rely on, such as analysis results.
- See also
- PassContext
◆ PassContextNode()
tvm::transform::PassContextNode::PassContextNode |
( |
| ) |
|
|
default |
◆ GetConfig() [1/2]
template<typename TObjectRef >
Optional<TObjectRef> tvm::transform::PassContextNode::GetConfig |
( |
const std::string & |
key, |
|
|
Optional< TObjectRef > |
default_value = Optional<TObjectRef>(nullptr) |
|
) |
| const |
|
inline |
Get a config value from the pass context.
- Parameters
-
key | The config key. |
default_value | The default value if the key does not exist, defaults to nullptr. |
- Returns
- The result
- Template Parameters
-
TOBjectRef | the expected object type. |
- Exceptions
-
Error | if the key exists but the value does not match TObjectRef. |
◆ GetConfig() [2/2]
template<typename TObjectRef >
Optional<TObjectRef> tvm::transform::PassContextNode::GetConfig |
( |
const std::string & |
key, |
|
|
TObjectRef |
default_value |
|
) |
| const |
|
inline |
◆ GetCurrentTrace()
ObjectRef tvm::transform::PassContextNode::GetCurrentTrace |
( |
| ) |
|
|
inline |
◆ GetTraceStack()
◆ GetTraceStackSize()
int tvm::transform::PassContextNode::GetTraceStackSize |
( |
| ) |
|
|
inline |
◆ GetTuningAPIDatabase()
◆ IncNumEvals()
void tvm::transform::PassContextNode::IncNumEvals |
( |
int |
_num_evals | ) |
|
|
inline |
◆ PopTrace()
void tvm::transform::PassContextNode::PopTrace |
( |
| ) |
|
|
inline |
◆ PushTrace()
void tvm::transform::PassContextNode::PushTrace |
( |
ObjectRef |
new_trace | ) |
|
|
inline |
◆ SetNumEvals()
void tvm::transform::PassContextNode::SetNumEvals |
( |
int |
_num_evals | ) |
|
|
inline |
◆ TVM_DECLARE_FINAL_OBJECT_INFO()
◆ VisitAttrs()
void tvm::transform::PassContextNode::VisitAttrs |
( |
AttrVisitor * |
v | ) |
|
|
inline |
◆ _type_has_method_sequal_reduce
constexpr bool tvm::transform::PassContextNode::_type_has_method_sequal_reduce = false |
|
staticconstexpr |
◆ _type_key
constexpr const char* tvm::transform::PassContextNode::_type_key = "transform.PassContext" |
|
staticconstexpr |
◆ config
Pass specific configurations.
◆ diag_ctx
◆ disabled_pass
Array<String> tvm::transform::PassContextNode::disabled_pass |
The list of disabled passes.
◆ instruments
A list of pass instrument implementations.
◆ make_traceable
List of passes to be traced. If not defined, make every pass traceable.
◆ num_evals
int tvm::transform::PassContextNode::num_evals {0} |
|
mutable |
Number of evaluations conducted in the pass pipeline.
◆ opt_level
int tvm::transform::PassContextNode::opt_level {2} |
The default optimization level.
◆ required_pass
Array<String> tvm::transform::PassContextNode::required_pass |
The list of required passes.
◆ trace_stack
Trace stack for relax pass infra.
◆ tuning_api_database
The documentation for this class was generated from the following file: