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

Method forward

caffe2/contrib/aten/docs/sample.py:27–30  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

25
26class MyModule(nn.Module):
27 def forward(self, x, y):
28 # you can combine your ATen ops with standard onnx ones
29 x = nn.ReLU()(x)
30 return MyFunction.apply(x, y)
31
32f = tempfile.NamedTemporaryFile()
33torch.onnx.export(MyModule(),

Callers

nothing calls this directly

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected