(self, x)
| 16 | self.proj = nn.Linear(input_dim, embed_dim) |
| 17 | |
| 18 | def forward(self, x): |
| 19 | x = x.flatten(2).transpose(1, 2) |
| 20 | x = self.proj(x) |
| 21 | return x |
| 22 | |
| 23 | |
| 24 | class DecoderHead(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected