mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-09 15:02:01 +00:00
remove unused argument in WindowSDPA
This commit is contained in:
parent
31b5f80496
commit
336253f26b
|
@ -173,7 +173,6 @@ class RelativePositionBias(fl.Module):
|
|||
class WindowSDPA(fl.Module):
|
||||
def __init__(
|
||||
self,
|
||||
dim: int,
|
||||
window_size: int,
|
||||
num_heads: int,
|
||||
shift: bool = False,
|
||||
|
@ -223,7 +222,7 @@ class WindowAttention(fl.Chain):
|
|||
) -> None:
|
||||
super().__init__(
|
||||
fl.Linear(dim, dim * 3, bias=True, device=device),
|
||||
WindowSDPA(dim, window_size, num_heads, shift, device=device),
|
||||
WindowSDPA(window_size, num_heads, shift, device=device),
|
||||
fl.Linear(dim, dim, device=device),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue