tvm
Classes | Namespaces | Macros
tag.h File Reference

Target tag registry. More...

#include <tvm/node/attr_registry_map.h>
#include <tvm/node/node.h>
#include <tvm/target/target.h>
#include <utility>
Include dependency graph for tag.h:

Go to the source code of this file.

Classes

class  tvm::TargetTagNode
 A target tag. More...
 
class  tvm::TargetTag
 Managed reference class to TargetTagNode. More...
 
class  tvm::TargetTagRegEntry
 

Namespaces

 tvm
 runtime implementation for LibTorch/TorchScript.
 

Macros

#define TVM_TARGET_TAG_REGISTER_VAR_DEF    static DMLC_ATTRIBUTE_UNUSED ::tvm::TargetTagRegEntry& __make_##TargetTag
 
#define TVM_REGISTER_TARGET_TAG(TargetTagName)
 Register a new target tag, or set attribute of the corresponding target tag. More...
 

Detailed Description

Target tag registry.

Macro Definition Documentation

◆ TVM_REGISTER_TARGET_TAG

#define TVM_REGISTER_TARGET_TAG (   TargetTagName)
Value:
static TargetTagRegEntry & RegisterOrGet(const String &target_tag_name)
Register or get a new entry.
TargetTagRegEntry & set_name()
Set name of the TargetTag to be the same as registry if it is empty.
Definition: tag.h:145
#define TVM_STR_CONCAT(__x, __y)
Definition: object.h:715
#define TVM_TARGET_TAG_REGISTER_VAR_DEF
Definition: tag.h:152

Register a new target tag, or set attribute of the corresponding target tag.

Parameters
TargetTagNameThe name of target tag

◆ TVM_TARGET_TAG_REGISTER_VAR_DEF

#define TVM_TARGET_TAG_REGISTER_VAR_DEF    static DMLC_ATTRIBUTE_UNUSED ::tvm::TargetTagRegEntry& __make_##TargetTag