(self, dim, out_dim, norm_layer=nn.LayerNorm)
| 495 | """ |
| 496 | |
| 497 | def __init__(self, dim, out_dim, norm_layer=nn.LayerNorm): |
| 498 | super().__init__() |
| 499 | self.dim = dim |
| 500 | self.reduction = nn.Conv2d(dim, out_dim, 3, (2, 1), 1) |
| 501 | # self.norm = nn.BatchNorm2d(out_dim) |
| 502 | self.norm = nn.LayerNorm(out_dim) |
| 503 | |
| 504 | def forward(self, x): |
| 505 | ''' |