(cls)
| 66 | |
| 67 | @classmethod |
| 68 | def _get_random_inputs(cls): |
| 69 | d_k = 64 |
| 70 | batch = 16 |
| 71 | seq_len = 10 |
| 72 | query = torch.rand(batch, seq_len, d_k) |
| 73 | key = torch.rand(batch, seq_len, d_k) |
| 74 | value = torch.rand(batch, seq_len, d_k) |
| 75 | return (query, key, value) |
| 76 | |
| 77 | |
| 78 | class TestLinearSDPACombined(torch.nn.Module): |
no outgoing calls
no test coverage detected