(
m: dict[OperatorName, BackendMetadata],
)
| 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() |