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

Method __init__

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

Source from the content-addressed store, hash-verified

79
80class CortexMTester(TesterBase):
81 def __init__(
82 self,
83 module,
84 example_inputs,
85 target_config: Optional[CortexMTargetConfig] = None,
86 ):
87 if callable(example_inputs):
88 resolved_example_inputs = example_inputs()
89 else:
90 resolved_example_inputs = example_inputs
91 target_config = target_config or CortexMTargetConfig(cpu=CortexM.M55)
92 stage_classes: dict[StageType, Callable[..., Any]] = dict(
93 cortex_m_stage_classes
94 )
95 stage_classes[StageType.RUN_PASSES] = lambda: CortexMRunPasses(
96 target_config=target_config
97 )
98 super().__init__(module, resolved_example_inputs, stage_classes)
99
100 def test_dialect(
101 self,

Callers

nothing calls this directly

Calls 4

CortexMTargetConfigClass · 0.90
example_inputsFunction · 0.85
CortexMRunPassesClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected