tvm
|
Adapter for AttrsNode with the new reflection API. More...
#include <attrs.h>
Public Member Functions | |
void | InitByPackedArgs (const ffi::PackedArgs &args, bool allow_unknown) final |
Initialize the attributes by arguments. More... | |
![]() | |
virtual | ~BaseAttrsNode () |
virtual destructor More... | |
template<typename... Args> | |
void | InitBySeq (Args &&... args) |
Initialize the attributes by sequence of arguments. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (BaseAttrsNode, Object) | |
Additional Inherited Members | |
![]() | |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
static constexpr const char * | _type_key = "ir.Attrs" |
Adapter for AttrsNode with the new reflection API.
We will phaseout the old AttrsNode in future in favor of the new reflection API. This adapter allows us to gradually migrate to the new reflection API.
DerivedType | The final attribute type. |
|
inlinefinalvirtual |
Initialize the attributes by arguments.
kwargs | The key value pairs for initialization. [key0, value0, key1, value1, ..., key_n, value_n] |
allow_unknown | Whether allow additional unknown fields. |
Implements tvm::BaseAttrsNode.