(self, x)
| 809 | |
| 810 | class CustomOpExample(torch.nn.Module): |
| 811 | def forward(self, x): |
| 812 | x = torch.sin(x) |
| 813 | x = torch.ops.my_custom_library.custom_op(x) |
| 814 | x = torch.cos(x) |
| 815 | return x |
| 816 | |
| 817 | exported_custom_op_example = export(CustomOpExample(), (torch.randn(3, 3),)) |
| 818 | print(exported_custom_op_example) |
nothing calls this directly
no outgoing calls
no test coverage detected