tvm
|
namespace of the attributes that can be attached to a relay::Function. More...
Variables | |
constexpr const char * | kPrimitive = "Primitive" |
Mark the function as representing a sub-graph which is to be lowered or compiled as a unit. For example, the function may represent a kernel which TVM will lower to a PrimFunc. If present should be bound to Integer(1) . May be accompanied by "Compiler", see below. The function body should be considered opaque by Relay, and many passes simply ignore these functions. More... | |
constexpr const char * | kExtern = "Extern" |
Mark the function as externally implemented, ie bound in a runtime::Module within the IRModule's "external_mods" attribute. If present should be bound to Integer(1) . Generally the only attribute when present. More... | |
constexpr const char * | kCompiler = "Compiler" |
Indicates the name of the external codegen 'compiler' that should be used to lower or compile the function other than TVM's default lowering pipeline. The name may correspond to a TargetKind name. There may be a global function registered under 'relay.ext.{name}'. More... | |
constexpr const char * | kClosure = "Closure" |
Indicate if the function is a closure. More... | |
constexpr const char * | kParams = "__params__" |
Store a Var to parameter/Constant mapping on a Function. More... | |
constexpr const char * | kSkipOptimization = "SkipOptimization" |
Mark if the function should be avoided being optimized. More... | |
constexpr const char * | kComposite = "Composite" |
Treat the function as a composite operator. More... | |
constexpr const char * | kInline = "Inline" |
Mark the function to be inlined. More... | |
constexpr const char * | kPartitionedFromPattern = "PartitionedFromPattern" |
Indicate the function was created by the Pattern Partitioning Pass. More... | |
constexpr const char * | kReshapeOnly = "relay.reshape_only" |
Mark the function as only composed of reshape operations. More... | |
namespace of the attributes that can be attached to a relay::Function.
constexpr const char* tvm::relay::attr::kClosure = "Closure" |
Indicate if the function is a closure.
constexpr const char* tvm::relay::attr::kCompiler = "Compiler" |
Indicates the name of the external codegen 'compiler' that should be used to lower or compile the function other than TVM's default lowering pipeline. The name may correspond to a TargetKind name. There may be a global function registered under 'relay.ext.{name}'.
Type: String
constexpr const char* tvm::relay::attr::kComposite = "Composite" |
Treat the function as a composite operator.
constexpr const char* tvm::relay::attr::kExtern = "Extern" |
Mark the function as externally implemented, ie bound in a runtime::Module within the IRModule's "external_mods" attribute. If present should be bound to Integer(1)
. Generally the only attribute when present.
constexpr const char* tvm::relay::attr::kInline = "Inline" |
Mark the function to be inlined.
constexpr const char* tvm::relay::attr::kParams = "__params__" |
constexpr const char* tvm::relay::attr::kPartitionedFromPattern = "PartitionedFromPattern" |
Indicate the function was created by the Pattern Partitioning Pass.
constexpr const char* tvm::relay::attr::kPrimitive = "Primitive" |
Mark the function as representing a sub-graph which is to be lowered or compiled as a unit. For example, the function may represent a kernel which TVM will lower to a PrimFunc. If present should be bound to Integer(1)
. May be accompanied by "Compiler", see below. The function body should be considered opaque by Relay, and many passes simply ignore these functions.
constexpr const char* tvm::relay::attr::kReshapeOnly = "relay.reshape_only" |
Mark the function as only composed of reshape operations.
constexpr const char* tvm::relay::attr::kSkipOptimization = "SkipOptimization" |
Mark if the function should be avoided being optimized.