| 29 | return self.gelu(c) |
| 30 | |
| 31 | class WrapModule(torch.nn.Module): |
| 32 | def __init__(self): |
| 33 | super().__init__() |
| 34 | self.test_model = TestModel() |
| 35 | |
| 36 | def forward(self, x): |
| 37 | return self.test_model(x) |
| 38 | |
| 39 | warp_model = WrapModule() |
| 40 | example_inputs = (torch.rand(1, 32, 16, 16),) |
no outgoing calls