Template Struct AttrKey#
Defined in File accessor.h
Struct Documentation#
-
template<typename T>
struct AttrKey# A typed attribute name. Null-terminated name storage must outlive the key.
// In namespace tvm::ffi: namespace type_attr { inline constexpr reflection::AttrKey<bool> kSerializable{"example.serializable"}; } reflection::TypeAttrDef<MyObject>().attr(type_attr::kSerializable, true);
Public Functions
Public Members
-
const char *name#
Borrowed null-terminated attribute name; its storage must outlive the key.
-
const char *name#