(self, x)
| 49 | self.original_model = basemodel |
| 50 | |
| 51 | def forward(self, x): |
| 52 | features = [x] |
| 53 | for k, v in self.original_model._modules.items(): |
| 54 | if (k == 'blocks'): |
| 55 | for ki, vi in v._modules.items(): |
| 56 | features.append(vi(features[-1])) |
| 57 | else: |
| 58 | features.append(v(features[-1])) |
| 59 | return features |
| 60 | |
| 61 | |
| 62 | # Decoder (no pixel-wise MLP, no uncertainty-guided sampling) |
nothing calls this directly
no outgoing calls
no test coverage detected