(self, x, context=None)
| 468 | return checkpoint(self._forward, (x, context), self.parameters(), self.checkpoint) |
| 469 | |
| 470 | def _forward(self, x, context=None): |
| 471 | x = self.attn1(self.norm1(x), context=context) + x |
| 472 | x = self.ff(self.norm2(x)) + x |
| 473 | return x |
| 474 | |
| 475 | |
| 476 | class SpatialTransformer(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected