Managed reference class to TargetTagNode.
More...
#include <tag.h>
Managed reference class to TargetTagNode.
- See also
- TargetTagNode
◆ AddTag()
| static Target tvm::TargetTag::AddTag |
( |
ffi::String |
name, |
|
|
ffi::Map< ffi::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 ffi::Optional< Target > tvm::TargetTag::Get |
( |
const ffi::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
◆ GetConfig()
| static ffi::Optional< ffi::Map< ffi::String, Any > > tvm::TargetTag::GetConfig |
( |
const ffi::String & |
target_tag_name | ) |
|
|
static |
Retrieve the raw config dict for a target tag.
- Parameters
-
| target_tag_name | Name of the target tag |
- Returns
- The config dict if the tag exists, nullopt otherwise
◆ ListTags()
| static ffi::Map< ffi::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_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE()
◆ TargetTagRegEntry
The documentation for this class was generated from the following file: