MCPcopy Create free account
hub / github.com/pytorch/executorch / generate_header_entry

Function generate_header_entry

kernels/test/gen_supported_features.py:41–48  ·  view source on GitHub ↗
(d: dict)

Source from the content-addressed store, hash-verified

39
40
41def generate_header_entry(d: dict):
42 for entry in d:
43 namespace = entry["namespace"]
44 for feature, properties in entry.items():
45 if feature == "namespace":
46 # we handled namespace previously
47 continue
48 yield generate_header_entry_text(namespace, feature, properties)
49
50
51def generate_header_entry_text(namespace: str, feature: str, properties: dict):

Callers 1

generate_headerFunction · 0.85

Calls 2

itemsMethod · 0.80

Tested by

no test coverage detected