Managed reference class to TargetTagNode.
More...
#include <tag.h>
|
static Optional< Target > | Get (const String &target_tag_name) |
| Retrieve the Target given it the name of target tag. More...
|
|
static Map< String, Target > | ListTags () |
| List all names of the existing target tags. More...
|
|
static Target | AddTag (String name, Map< String, Any > config, bool override) |
| Add a tag into the registry. More...
|
|
Managed reference class to TargetTagNode.
- See also
- TargetTagNode
◆ AddTag()
static Target tvm::TargetTag::AddTag |
( |
String |
name, |
|
|
Map< String, Any > |
config, |
|
|
bool |
override |
|
) |
| |
|
static |
Add a tag into the registry.
- Parameters
-
name | Name of the tag |
config | The target config corresponding to the tag |
override | Allow overriding existing tags |
- Returns
- Target created with the tag
◆ Get()
static Optional<Target> tvm::TargetTag::Get |
( |
const String & |
target_tag_name | ) |
|
|
static |
Retrieve the Target given it the name of target tag.
- Parameters
-
target_tag_name | Name of the target tag |
- Returns
- The Target requested
◆ ListTags()
static Map<String, Target> tvm::TargetTag::ListTags |
( |
| ) |
|
|
static |
List all names of the existing target tags.
- Returns
- A dictionary that maps tag name to the concrete target it corresponds to
◆ TVM_DEFINE_OBJECT_REF_METHODS()
◆ TargetTagRegEntry
The documentation for this class was generated from the following file: