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

Function strip_et_fields

codegen/parse.py:152–158  ·  view source on GitHub ↗

Given a loaded yaml representing a list of operators, remove ET specific fields from every entries for BC compatibility

(es: object)

Source from the content-addressed store, hash-verified

150
151
152def strip_et_fields(es: object) -> None:
153 """Given a loaded yaml representing a list of operators,
154 remove ET specific fields from every entries for BC compatibility
155 """
156 for entry in es: # type: ignore[attr-defined]
157 for field in ET_FIELDS:
158 entry.pop(field, None)

Callers 2

parse_et_yamlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected