(self, x)
| 128 | self.mlp = CMlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop) |
| 129 | |
| 130 | def forward(self, x): |
| 131 | x = x + self.pos_embed(x) |
| 132 | x = x + self.drop_path(self.conv2(self.attn(self.conv1(self.norm1(x))))) |
| 133 | x = x + self.drop_path(self.mlp(self.norm2(x))) |
| 134 | return x |
| 135 | |
| 136 | |
| 137 | class SABlock(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected