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

Method forward

fx/native_interpreter/use_interpreter.py:115–116  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

113
114class MyElementwiseModule(torch.nn.Module):
115 def forward(self, x, y):
116 return x * y + y
117
118mem = MyElementwiseModule()
119lowered = lower_to_elementwise_interpreter(mem)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected