(self, x)
| 313 | self.proj_out = zero_module(conv_nd(1, channels, channels, 1)) |
| 314 | |
| 315 | def forward(self, x): |
| 316 | return checkpoint(self._forward, (x,), self.parameters(), True) # TODO: check checkpoint usage, is True # TODO: fix the .half call!!! |
| 317 | #return pt_checkpoint(self._forward, x) # pytorch |
| 318 | |
| 319 | def _forward(self, x): |
| 320 | b, c, *spatial = x.shape |
nothing calls this directly
no test coverage detected