[diffusion] fix: enable torch.compile for UlyssesAttention (#18840)
This commit is contained in:
@@ -78,7 +78,6 @@ class UlyssesAttention(nn.Module):
|
|||||||
self.backend = attn_backend.get_enum()
|
self.backend = attn_backend.get_enum()
|
||||||
self.dtype = dtype
|
self.dtype = dtype
|
||||||
|
|
||||||
@torch.compiler.disable
|
|
||||||
def forward(
|
def forward(
|
||||||
self,
|
self,
|
||||||
q: torch.Tensor,
|
q: torch.Tensor,
|
||||||
@@ -157,7 +156,6 @@ class UlyssesAttention(nn.Module):
|
|||||||
class UlyssesAttention_VSA(UlyssesAttention):
|
class UlyssesAttention_VSA(UlyssesAttention):
|
||||||
"""Distributed attention layer with VSA support."""
|
"""Distributed attention layer with VSA support."""
|
||||||
|
|
||||||
@torch.compiler.disable
|
|
||||||
def forward(
|
def forward(
|
||||||
self,
|
self,
|
||||||
q: torch.Tensor,
|
q: torch.Tensor,
|
||||||
|
|||||||
Reference in New Issue
Block a user