Specialized attribute type that is backed by a map. The DictAttrsNode implements the Attrs behavior, its fields are directly accessible via object.field_name like other normal nodes.
More...
#include <attrs.h>
|
Map< String, ffi::Any > | dict |
| internal attrs map More...
|
|
|
static constexpr const char * | _type_key = "ir.DictAttrs" |
|
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
|
static constexpr const char * | _type_key = "ir.Attrs" |
|
Specialized attribute type that is backed by a map. The DictAttrsNode implements the Attrs behavior, its fields are directly accessible via object.field_name like other normal nodes.
◆ InitByPackedArgs()
void tvm::DictAttrsNode::InitByPackedArgs |
( |
const ffi::PackedArgs & |
kwargs, |
|
|
bool |
allow_unknown |
|
) |
| |
|
finalvirtual |
Initialize the attributes by arguments.
- Parameters
-
kwargs | The key value pairs for initialization. [key0, value0, key1, value1, ..., key_n, value_n] |
allow_unknown | Whether allow additional unknown fields. |
- Note
- This function throws when the required field is not present.
Implements tvm::BaseAttrsNode.
◆ RegisterReflection()
static void tvm::DictAttrsNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_DECLARE_FINAL_OBJECT_INFO()
◆ _type_key
constexpr const char* tvm::DictAttrsNode::_type_key = "ir.DictAttrs" |
|
staticconstexpr |
◆ dict
Map<String, ffi::Any> tvm::DictAttrsNode::dict |
The documentation for this class was generated from the following file: