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

Method from_backend_indices

codegen/model.py:174–181  ·  view source on GitHub ↗
(
        backend_indices: dict[DispatchKey, dict[OperatorName, BackendMetadata]],
    )

Source from the content-addressed store, hash-verified

172
173 @staticmethod
174 def from_backend_indices(
175 backend_indices: dict[DispatchKey, dict[OperatorName, BackendMetadata]],
176 ) -> ETKernelIndex:
177 kernel_index: dict[OperatorName, dict[ETKernelKey, BackendMetadata]] = (
178 defaultdict(dict)
179 )
180 ETKernelIndex.grow_from_backend_indices(kernel_index, backend_indices)
181 return ETKernelIndex(kernel_index)
182
183 def grow(
184 self, backend_indices: dict[DispatchKey, dict[OperatorName, BackendMetadata]]

Callers 2

parse_yaml_filesFunction · 0.80
setUpMethod · 0.80

Calls 2

ETKernelIndexClass · 0.85

Tested by 1

setUpMethod · 0.64