mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
remove unnecessary import
This commit is contained in:
@@ -686,8 +686,6 @@ class CrossAttention(nn.Module):
|
|||||||
return out
|
return out
|
||||||
|
|
||||||
def forward_sdpa(self, x, context=None, mask=None):
|
def forward_sdpa(self, x, context=None, mask=None):
|
||||||
import xformers.ops
|
|
||||||
|
|
||||||
h = self.heads
|
h = self.heads
|
||||||
q_in = self.to_q(x)
|
q_in = self.to_q(x)
|
||||||
context = context if context is not None else x
|
context = context if context is not None else x
|
||||||
|
|||||||
Reference in New Issue
Block a user