(self, x)
| 15 | self.drop = nn.Dropout(drop) |
| 16 | |
| 17 | def forward(self, x): |
| 18 | x = self.fc1(x) |
| 19 | x = self.act(x) |
| 20 | x = self.drop(x) |
| 21 | x = self.fc2(x) |
| 22 | x = self.drop(x) |
| 23 | return x |
| 24 | |
| 25 | class Attention(nn.Module): |
| 26 | def __init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.): |
nothing calls this directly
no outgoing calls
no test coverage detected