(self, x, emb, context=None)
| 81 | """ |
| 82 | |
| 83 | def forward(self, x, emb, context=None): |
| 84 | for layer in self: |
| 85 | if isinstance(layer, TimestepBlock): |
| 86 | x = layer(x, emb) |
| 87 | elif isinstance(layer, SpatialTransformer): |
| 88 | x = layer(x, context) |
| 89 | else: |
| 90 | x = layer(x) |
| 91 | return x |
| 92 | |
| 93 | |
| 94 | class Upsample(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected