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

Method forward

exir/tests/test_serde.py:117–121  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

115 super().__init__()
116
117 def forward(self, x):
118 x = x + x
119 x = x * x
120 x = x / x
121 return x, x.clone()
122
123 inputs = (torch.ones([512], requires_grad=True),)
124 self.check_serde(MyModule(), inputs)

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected