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

Method __init__

backends/cortex_m/test/tester.py:53–60  ·  view source on GitHub ↗
(self, target_config: Optional[CortexMTargetConfig] = None)

Source from the content-addressed store, hash-verified

51
52class CortexMRunPasses(RunPasses):
53 def __init__(self, target_config: Optional[CortexMTargetConfig] = None):
54 target_config = target_config or CortexMTargetConfig(cpu=CortexM.M55)
55 # The base RunPasses constructs the pass manager as `cls(ep, pass_list)`.
56 # Pre-bind the target_config so it flows through that 2-arg call.
57 super().__init__(
58 partial(CortexMPassManager, target_config=target_config), # type: ignore[arg-type]
59 CortexMPassManager.pass_list, # type: ignore[arg-type]
60 )
61
62
63class CortexMSerialize(Serialize):

Callers

nothing calls this directly

Calls 2

CortexMTargetConfigClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected