mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-10 06:54:17 +00:00
fixed FeedForward
This commit is contained in:
@@ -637,7 +637,7 @@ class FeedForward(nn.Module):
|
|||||||
|
|
||||||
@torch.compile(disable=disable_selective_torch_compile)
|
@torch.compile(disable=disable_selective_torch_compile)
|
||||||
def forward(self, x):
|
def forward(self, x):
|
||||||
return self.w2(F.silu(self.w1(x)*self.w3(x)))
|
return self.w2(F.silu(self.w1(x))*self.w3(x))
|
||||||
|
|
||||||
|
|
||||||
class JointTransformerBlock(GradientCheckpointMixin):
|
class JointTransformerBlock(GradientCheckpointMixin):
|
||||||
|
|||||||
Reference in New Issue
Block a user