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

Function map_index

codegen/gen.py:784–787  ·  view source on GitHub ↗
(
            m: dict[OperatorName, BackendMetadata],
        )

Source from the content-addressed store, hash-verified

782
783 # (2) Return BackendIndices if kernel index is absent
784 def map_index(
785 m: dict[OperatorName, BackendMetadata],
786 ) -> dict[OperatorName, BackendMetadata]:
787 return {op: m[op] for op in m if op in op_names}
788
789 backend_indices = {
790 k: map_index(b.index) for (k, b) in parsed_yaml.backend_indices.items()

Callers 1

parse_yamlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected