This commit is contained in:
James Betker 2022-06-11 11:22:34 -06:00
parent 00b9f332ee
commit 999a140f9f

View File

@ -57,7 +57,7 @@ class DietAttentionBlock(TimestepBlock):
h = torch.cat([ah, h], dim=-1)
h = F.gelu(self.attnorm(h))
h = checkpoint(self.ff, h)
return h * self.exit_mult
return h * self.exit_mult + x
class TransformerDiffusion(nn.Module):