Update unet.py

This commit is contained in:
layerdiffusion
2024-08-02 04:20:18 -07:00
parent 76e0d17af3
commit 40476bb8b3

View File

@@ -202,7 +202,6 @@ class BasicTransformerBlock(nn.Module):
self.checkpoint = checkpoint
self.n_heads = n_heads
self.d_head = d_head
self.switch_temporal_ca_to_sa = switch_temporal_ca_to_sa
def forward(self, x, context=None, transformer_options={}):
return checkpoint(self._forward, (x, context, transformer_options), self.parameters(), self.checkpoint)