(self, x, y)
| 25 | |
| 26 | class 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 | |
| 32 | f = tempfile.NamedTemporaryFile() |
| 33 | torch.onnx.export(MyModule(), |