|
tvm
|
Target kind registry. More...
#include <tvm/ir/transform.h>#include <tvm/node/attr_registry_map.h>#include <tvm/node/node.h>#include <memory>#include <unordered_map>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | tvm::detail::ValueTypeInfoMaker< ValueType, IsArray, IsMap > |
| class | tvm::TargetKindAttrMap< ValueType > |
| Map<TargetKind, ValueType> used to store meta-information about TargetKind. More... | |
| class | tvm::TargetKindNode |
| Target kind, specifies the kind of the target. More... | |
| class | tvm::TargetKind |
| Managed reference class to TargetKindNode. More... | |
| class | tvm::TargetKindAttrMap< ValueType > |
| Map<TargetKind, ValueType> used to store meta-information about TargetKind. More... | |
| class | tvm::TargetKindRegEntry |
| Helper structure to register TargetKind. More... | |
| struct | tvm::detail::is_specialized< Type, Container > |
| struct | tvm::detail::is_specialized< Container< Args... >, Container > |
| struct | tvm::detail::ValueTypeInfoMaker< ValueType, IsArray, IsMap > |
Namespaces | |
| tvm | |
| runtime implementation for LibTorch/TorchScript. | |
| tvm::detail | |
| tvm::attr | |
| Generic attribute names that can be attached to any function. | |
Macros | |
| #define | TVM_TARGET_KIND_REGISTER_VAR_DEF static DMLC_ATTRIBUTE_UNUSED ::tvm::TargetKindRegEntry& __make_##TargetKind |
| #define | TVM_REGISTER_TARGET_KIND(TargetKindName, DeviceType) |
| Register a new target kind, or set attribute of the corresponding target kind. More... | |
Typedefs | |
| using | tvm::TargetFeatures = Map< String, ObjectRef > |
| Map containing parsed features of a specific Target. More... | |
| using | tvm::TargetJSON = Map< String, ObjectRef > |
| TargetParser to apply on instantiation of a given TargetKind. More... | |
| using | tvm::FTVMTargetParser = TypedPackedFunc< TargetJSON(TargetJSON)> |
| using | tvm::FTVMRelayToTIR = transform::Pass |
| RelayToTIR tvm::transform::Pass specific to a TargetKind. More... | |
| using | tvm::FTVMTIRToRuntime = runtime::TypedPackedFunc< runtime::Module(IRModule, Target)> |
| TIRToRuntime conversion specific to a TargetKind. More... | |
Variables | |
| constexpr const char * | tvm::attr::kIsExternalCodegen = "is_external_codegen" |
A TargetKind attribute of type Bool. If true, then the target kind name also corresponds to an external codegen 'compiler' name. That name may be used: More... | |
| constexpr const char * | tvm::attr::kRelayToTIR = "RelayToTIR" |
A TargetKind attribute of type FTVMRelayToTIR. If set, then the target kind name also corresponds to an external codegen 'compiler' name, and the bound value is a Pass to apply before the TVM lowering. More... | |
Target kind registry.
| #define TVM_REGISTER_TARGET_KIND | ( | TargetKindName, | |
| DeviceType | |||
| ) |
Register a new target kind, or set attribute of the corresponding target kind.
| TargetKindName | The name of target kind |
| DeviceType | The DLDeviceType of the target kind |
| #define TVM_TARGET_KIND_REGISTER_VAR_DEF static DMLC_ATTRIBUTE_UNUSED ::tvm::TargetKindRegEntry& __make_##TargetKind |
1.8.13