(self, x, y, xpos, ypos)
| 410 | self.norm_y = norm_layer(dim) if norm_mem else nn.Identity() |
| 411 | |
| 412 | def forward(self, x, y, xpos, ypos): |
| 413 | x = x + self.drop_path(self.attn(self.norm1(x), xpos)) |
| 414 | y_ = self.norm_y(y) |
| 415 | x = x + self.drop_path(self.cross_attn(self.norm2(x), y_, y_, xpos, ypos)) |
| 416 | x = x + self.drop_path(self.mlp(self.norm3(x))) |
| 417 | return x, y |
| 418 | |
| 419 | |
| 420 | # patch embedding |
nothing calls this directly
no outgoing calls
no test coverage detected