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

Method has_kernels

codegen/model.py:143–145  ·  view source on GitHub ↗
(self, g: NativeFunction | NativeFunctionsGroup)

Source from the content-addressed store, hash-verified

141 index: dict[OperatorName, dict[ETKernelKey, BackendMetadata]]
142
143 def has_kernels(self, g: NativeFunction | NativeFunctionsGroup) -> bool:
144 m = self.get_kernels(g)
145 return m is not None
146
147 def get_kernels(
148 self, g: NativeFunction | NativeFunctionsGroup

Callers

nothing calls this directly

Calls 1

get_kernelsMethod · 0.95

Tested by

no test coverage detected