(self, x)
| 676 | self.downsample = None |
| 677 | |
| 678 | def forward(self, x): |
| 679 | for blk in self.blocks: |
| 680 | if self.use_checkpoint: |
| 681 | x = checkpoint.checkpoint(blk, x) |
| 682 | else: |
| 683 | x = blk(x) |
| 684 | |
| 685 | if self.downsample is not None: |
| 686 | x = self.downsample(x) |
| 687 | |
| 688 | return x |
| 689 | |
| 690 | |
| 691 | class Permute(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected