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>
|
ffi::Map< ffi::String, ffi::Any > | dict |
| internal attrs map More...
|
|
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_FFI_DECLARE_OBJECT_INFO_FINAL()
◆ dict
ffi::Map<ffi::String, ffi::Any> tvm::DictAttrsNode::dict |
The documentation for this class was generated from the following file: