(self, x, context=None)
| 267 | return checkpoint(self._forward, (x, context), self.parameters(), self.checkpoint) |
| 268 | |
| 269 | def _forward(self, x, context=None): |
| 270 | x = self.attn1(self.norm1(x), context=context if self.disable_self_attn else None) + x |
| 271 | x = self.attn2(self.norm2(x), context=context) + x |
| 272 | x = self.ff(self.norm3(x)) + x |
| 273 | return x |
| 274 | |
| 275 | |
| 276 | class SpatialTransformer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected