tvm
Loading...
Searching...
No Matches
Variables
tvm::relax::attr Namespace Reference

Variables

constexpr const charkPrimitive = "Primitive"
 Mark the function as a primitive function.
 
constexpr const charkCodegen = "Codegen"
 Indicate the codegen that should be used for building this function. When this is unset or set to "default", the default compilation pipeline will be used.
 
constexpr const charkComposite = "Composite"
 Treat the function as a composite operator.
 
constexpr const charkPartitionedFromPattern = "PartitionedFromPattern"
 Indicate the function was created by the Pattern Partitioning Pass.
 
constexpr const charkWorkspaceSize = "WorkspaceSize"
 The required workspace for an external function.
 
constexpr const charkForcePure = "relax.force_pure"
 Override checking purity for this function and treat as pure (is_pure must be set to true)
 
constexpr const charkNumInput = "num_input"
 The number of inputs of a function. If a function has the num_input attribute, the last func->params.size() - num_inputs arguments are assumed to be weights that are fixed across invocations.
 

Variable Documentation

◆ kCodegen

constexpr const char* tvm::relax::attr::kCodegen = "Codegen"
constexpr

Indicate the codegen that should be used for building this function. When this is unset or set to "default", the default compilation pipeline will be used.

◆ kComposite

constexpr const char* tvm::relax::attr::kComposite = "Composite"
constexpr

Treat the function as a composite operator.

◆ kForcePure

constexpr const char* tvm::relax::attr::kForcePure = "relax.force_pure"
constexpr

Override checking purity for this function and treat as pure (is_pure must be set to true)

◆ kNumInput

constexpr const char* tvm::relax::attr::kNumInput = "num_input"
constexpr

The number of inputs of a function. If a function has the num_input attribute, the last func->params.size() - num_inputs arguments are assumed to be weights that are fixed across invocations.

◆ kPartitionedFromPattern

constexpr const char* tvm::relax::attr::kPartitionedFromPattern = "PartitionedFromPattern"
constexpr

Indicate the function was created by the Pattern Partitioning Pass.

◆ kPrimitive

constexpr const char* tvm::relax::attr::kPrimitive = "Primitive"
constexpr

Mark the function as a primitive function.

◆ kWorkspaceSize

constexpr const char* tvm::relax::attr::kWorkspaceSize = "WorkspaceSize"
constexpr

The required workspace for an external function.