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

Method get_example_inputs

backends/cortex_m/test/tester.py:156–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 example_inputs: tuple[Any, ...] | Callable[[], tuple[Any, ...]]
155
156 def get_example_inputs(self) -> tuple[Any, ...]:
157 if callable(self.example_inputs):
158 return self.example_inputs()
159 return self.example_inputs
160
161
162def ramp_tensor(start: float, end: float, shape: tuple[int, ...]) -> torch.Tensor:

Callers 14

test_dialect_mv2Function · 0.45
test_implementation_mv2Function · 0.45
test_dialect_resnet8Function · 0.45
test_dialect_mv3Function · 0.45
test_implementation_mv3Function · 0.45
test_dialect_ds_cnnFunction · 0.45

Calls 1

example_inputsMethod · 0.45

Tested by

no test coverage detected