MCPcopy Create free account
hub / github.com/apache/tvm-ffi / _field_map

Function _field_map

tests/python/test_dataclass_init.py:64–65  ·  view source on GitHub ↗
(type_cls: type)

Source from the content-addressed store, hash-verified

62
63
64def _field_map(type_cls: type) -> dict[str, Any]:
65 return {field.name: field for field in getattr(type_cls, "__tvm_ffi_type_info__").fields}
66
67
68def _method_metadata(type_cls: type, method_name: str) -> dict[str, Any]:

Calls

no outgoing calls

Tested by

no test coverage detected