| 44 | |
| 45 | |
| 46 | class TestLinear(torch.nn.Module): |
| 47 | def __init__(self): |
| 48 | super().__init__() |
| 49 | self.linear = torch.nn.Linear(32, 16, bias=True) |
| 50 | |
| 51 | def forward(self, x): |
| 52 | return self.linear(x) |
| 53 | |
| 54 | @classmethod |
| 55 | def _get_random_inputs(cls): |
| 56 | x = torch.rand(8, 32) |
| 57 | return (x,) |
| 58 | |
| 59 | |
| 60 | class TestSDPA(torch.nn.Module): |
no outgoing calls