(self, x, y, xpos, ypos)
| 184 | self.norm_y = norm_layer(dim) if norm_mem else nn.Identity() |
| 185 | |
| 186 | def forward(self, x, y, xpos, ypos): |
| 187 | x = x + self.drop_path(self.attn(self.norm1(x), xpos)) |
| 188 | y_ = self.norm_y(y) |
| 189 | x = x + self.drop_path(self.cross_attn(self.norm2(x), y_, y_, xpos, ypos)) |
| 190 | x = x + self.drop_path(self.mlp(self.norm3(x))) |
| 191 | return x, y |
| 192 | |
| 193 | |
| 194 | # patch embedding |
nothing calls this directly
no outgoing calls
no test coverage detected