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

Function _single_input_case

backends/arm/test/ops/test_while.py:167–173  ·  view source on GitHub ↗
(
    module_factory: Callable[[], torch.nn.Module],
)

Source from the content-addressed store, hash-verified

165
166
167def _single_input_case(
168 module_factory: Callable[[], torch.nn.Module],
169) -> Callable[[], Tuple[torch.nn.Module, input_single]]:
170 def _create() -> Tuple[torch.nn.Module, input_single]:
171 return module_factory(), (torch.ones(2, 3, 2, 2),)
172
173 return _create
174
175
176def _dual_input_case(

Callers 1

test_while.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected