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

Variables

constexpr ffi::reflection::AttrKey< ffi::Map< ffi::String, ffi::Tensor > > kConstNameToConstant
 All the named Tensors accumulated during compilation by external codegen. Generally the associated runtime::Module will indicate it requires bindings for these names, and during module initialization these bindings will be recovered from a ConstLoaderModule.
 
constexpr ffi::reflection::AttrKey< bool > kPrimitive {"Primitive"}
 Mark the function as a primitive function.
 
constexpr ffi::reflection::AttrKey< ffi::String > kCodegen {"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 ffi::reflection::AttrKey< ffi::String > kComposite {"Composite"}
 Treat the function as a composite operator.
 
constexpr ffi::reflection::AttrKey< ffi::String > kPartitionedFromPattern
 Indicate the function was created by the Pattern Partitioning Pass.
 
constexpr ffi::reflection::AttrKey< int64_t > kWorkspaceSize {"WorkspaceSize"}
 The required workspace for an external function.
 
constexpr ffi::reflection::AttrKey< bool > kForcePure {"relax.force_pure"}
 Override checking purity for this function and treat as pure (is_pure must be set to true)
 
constexpr ffi::reflection::AttrKey< int64_t > kNumInput {"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.
 
constexpr ffi::reflection::AttrKey< int64_t > kOpPattern {"op_pattern"}
 
constexpr ffi::reflection::AttrKey< ffi::ObjectRef > kOpAttrs {"op_attrs"}
 
constexpr ffi::reflection::AttrKey< ffi::String > kOperatorName {"operator_name"}
 
constexpr ffi::reflection::AttrKey< ffi::String > kLibraryKernel {"library_kernel"}
 
constexpr ffi::reflection::AttrKey< ffi::String > kCSource {"c_source"}
 
constexpr ffi::reflection::AttrKey< ffi::String > kCSourceFmt {"c_source_fmt"}
 
constexpr ffi::reflection::AttrKey< ffi::Map< ffi::String, IntImm > > kTirVarUpperBound
 
constexpr ffi::reflection::AttrKey< ffi::Map< ffi::String, IntImm > > kTirVarLowerBound
 
constexpr ffi::reflection::AttrKey< ffi::Array< ffi::String > > kTirNonNegativeVar
 
constexpr const char * kMemoryPlanDynamicFuncOutput = "relax.memory_plan_dynamic_func_output"
 
constexpr ffi::reflection::AttrKey< ffi::Array< ffi::String > > kCaptureSymbolicVars
 
constexpr ffi::reflection::AttrKey< int64_t > kScoped {"scoped"}
 

Variable Documentation

◆ kCaptureSymbolicVars

constexpr ffi::reflection::AttrKey<ffi::Array<ffi::String> > tvm::relax::attr::kCaptureSymbolicVars
inlineconstexpr
Initial value:
{
"relax.rewrite_cuda_graph.capture_symbolic_vars"}

◆ kCodegen

constexpr ffi::reflection::AttrKey<ffi::String> tvm::relax::attr::kCodegen {"Codegen"}
inlineconstexpr

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 ffi::reflection::AttrKey<ffi::String> tvm::relax::attr::kComposite {"Composite"}
inlineconstexpr

Treat the function as a composite operator.

◆ kConstNameToConstant

constexpr ffi::reflection::AttrKey<ffi::Map<ffi::String, ffi::Tensor> > tvm::relax::attr::kConstNameToConstant
inlineconstexpr
Initial value:
{
"const_name_to_constant"}

All the named Tensors accumulated during compilation by external codegen. Generally the associated runtime::Module will indicate it requires bindings for these names, and during module initialization these bindings will be recovered from a ConstLoaderModule.

Type: ffi::Map<ffi::String, Tensor>

◆ kCSource

constexpr ffi::reflection::AttrKey<ffi::String> tvm::relax::attr::kCSource {"c_source"}
inlineconstexpr

◆ kCSourceFmt

constexpr ffi::reflection::AttrKey<ffi::String> tvm::relax::attr::kCSourceFmt {"c_source_fmt"}
inlineconstexpr

◆ kForcePure

constexpr ffi::reflection::AttrKey<bool> tvm::relax::attr::kForcePure {"relax.force_pure"}
inlineconstexpr

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

◆ kLibraryKernel

constexpr ffi::reflection::AttrKey<ffi::String> tvm::relax::attr::kLibraryKernel {"library_kernel"}
inlineconstexpr

◆ kMemoryPlanDynamicFuncOutput

constexpr const char* tvm::relax::attr::kMemoryPlanDynamicFuncOutput = "relax.memory_plan_dynamic_func_output"
constexpr

◆ kNumInput

constexpr ffi::reflection::AttrKey<int64_t> tvm::relax::attr::kNumInput {"num_input"}
inlineconstexpr

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.

◆ kOpAttrs

constexpr ffi::reflection::AttrKey<ffi::ObjectRef> tvm::relax::attr::kOpAttrs {"op_attrs"}
inlineconstexpr

◆ kOperatorName

constexpr ffi::reflection::AttrKey<ffi::String> tvm::relax::attr::kOperatorName {"operator_name"}
inlineconstexpr

◆ kOpPattern

constexpr ffi::reflection::AttrKey<int64_t> tvm::relax::attr::kOpPattern {"op_pattern"}
inlineconstexpr

◆ kPartitionedFromPattern

constexpr ffi::reflection::AttrKey<ffi::String> tvm::relax::attr::kPartitionedFromPattern
inlineconstexpr
Initial value:
{
"PartitionedFromPattern"}

Indicate the function was created by the Pattern Partitioning Pass.

◆ kPrimitive

constexpr ffi::reflection::AttrKey<bool> tvm::relax::attr::kPrimitive {"Primitive"}
inlineconstexpr

Mark the function as a primitive function.

◆ kScoped

constexpr ffi::reflection::AttrKey<int64_t> tvm::relax::attr::kScoped {"scoped"}
inlineconstexpr

◆ kTirNonNegativeVar

constexpr ffi::reflection::AttrKey<ffi::Array<ffi::String> > tvm::relax::attr::kTirNonNegativeVar
inlineconstexpr
Initial value:
{
"tir_non_negative_var"}

◆ kTirVarLowerBound

constexpr ffi::reflection::AttrKey<ffi::Map<ffi::String, IntImm> > tvm::relax::attr::kTirVarLowerBound
inlineconstexpr
Initial value:
{
"tir_var_lower_bound"}

◆ kTirVarUpperBound

constexpr ffi::reflection::AttrKey<ffi::Map<ffi::String, IntImm> > tvm::relax::attr::kTirVarUpperBound
inlineconstexpr
Initial value:
{
"tir_var_upper_bound"}

◆ kWorkspaceSize

constexpr ffi::reflection::AttrKey<int64_t> tvm::relax::attr::kWorkspaceSize {"WorkspaceSize"}
inlineconstexpr

The required workspace for an external function.