Managed reference class to TargetTagNode.
More...
#include <tag.h>
|
| static ffi::Optional< Target > | Get (const ffi::String &target_tag_name) |
| | Retrieve the Target given it the name of target tag. More...
|
| |
| static ffi::Map< ffi::String, Target > | ListTags () |
| | List all names of the existing target tags. More...
|
| |
| static Target | AddTag (ffi::String name, ffi::Map< ffi::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 |
( |
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
◆ 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: